Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
111 views
Advanced Git Commands
This document discusses various advanced Git commands for reverting changes, showing commit diffs, keeping Git history linear, squashing commits, saving the working directory, cherry-picking changes, and cleaning untracked and ignored files. Commands covered include git revert, git reset, git diff, git show, git rebase, git stash, git cherry-pick, and git clean.
Uploaded by
Daniel F Jaramillo
AI-enhanced description
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download now
Download
Save Advanced Git Commands For Later
Download
Save
Save Advanced Git Commands For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
111 views
Advanced Git Commands
This document discusses various advanced Git commands for reverting changes, showing commit diffs, keeping Git history linear, squashing commits, saving the working directory, cherry-picking changes, and cleaning untracked and ignored files. Commands covered include git revert, git reset, git diff, git show, git rebase, git stash, git cherry-pick, and git clean.
Uploaded by
Daniel F Jaramillo
AI-enhanced description
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download now
Download
Save Advanced Git Commands For Later
Carousel Previous
Carousel Next
Save
Save Advanced Git Commands For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 9
Search
Fullscreen
Git Advanced
Commands
Revert Changes - Revert
git revert <hash>
git revert --no-commit <hash>
git revert HEAD~2..HEAD
git revert -m <1,2> <hash>
Revert Changes - Reset
git reset --soft HEAD~1
git reset --hard HEAD~1
git reset --hard HEAD
git reset --hard origin/main
Showing commits diff
git diff <hash>~ <hash>
git show <hash>
Keeping the git history linear
git rebase <branch>
Squashing commits
git reset --soft HEAD~3 && git commit
git rebase -i HEAD~3
Saving the working directory
git stash
git stash pop
git stash list
Cherry-picking changes
git cherry-pick <commitSha>
Bonus, cleaning untracked and ignored files
git clean -dxf
You might also like
Ansible Hands On Step by Step For Beginners
PDF
No ratings yet
Ansible Hands On Step by Step For Beginners
5 pages
Git Cheat Sheet: Getting Started
PDF
No ratings yet
Git Cheat Sheet: Getting Started
3 pages
Successful Git Branching Model
PDF
No ratings yet
Successful Git Branching Model
7 pages
Git Commands: Getting & Creating Projects
PDF
No ratings yet
Git Commands: Getting & Creating Projects
3 pages
Best Way To Use Git Commands
PDF
No ratings yet
Best Way To Use Git Commands
4 pages
Atlassian Git Cheatsheet PDF
PDF
No ratings yet
Atlassian Git Cheatsheet PDF
2 pages
Git - Github
PDF
No ratings yet
Git - Github
29 pages
DevOps Chapter 2
PDF
No ratings yet
DevOps Chapter 2
31 pages
11.interview C Coding Question
PDF
No ratings yet
11.interview C Coding Question
7 pages
Git Basic Commands
PDF
No ratings yet
Git Basic Commands
27 pages
GIT Cheat Sheet
PDF
No ratings yet
GIT Cheat Sheet
2 pages
Git Cheat Sheet: Working With Branches
PDF
No ratings yet
Git Cheat Sheet: Working With Branches
1 page
Docker
PDF
No ratings yet
Docker
2 pages
Notes Git and Github
PDF
No ratings yet
Notes Git and Github
11 pages
Azure Kubernetes Service
PDF
100% (1)
Azure Kubernetes Service
33 pages
Git Basic Usage Installation
PDF
No ratings yet
Git Basic Usage Installation
3 pages
GIT Esc Chicago 2010
PDF
No ratings yet
GIT Esc Chicago 2010
27 pages
DevOps Notes -2 (1) (1)
PDF
No ratings yet
DevOps Notes -2 (1) (1)
118 pages
Manish Angular Notes
PDF
No ratings yet
Manish Angular Notes
14 pages
Docklight Manual
PDF
No ratings yet
Docklight Manual
55 pages
Mongodb Dba Course Content
PDF
No ratings yet
Mongodb Dba Course Content
2 pages
Setting Up A Repository: Git Init
PDF
No ratings yet
Setting Up A Repository: Git Init
11 pages
Grid Monitoring With Nagios: Aries Hung, Joanna Huang, Felix Lee, Min Tsai Asgc WLCG T2 Asia Workshop TIFR, Dec 2, 2006
PDF
No ratings yet
Grid Monitoring With Nagios: Aries Hung, Joanna Huang, Felix Lee, Min Tsai Asgc WLCG T2 Asia Workshop TIFR, Dec 2, 2006
30 pages
Useful Git Commands List
PDF
100% (1)
Useful Git Commands List
3 pages
Docker and Kubernetes PDF
PDF
No ratings yet
Docker and Kubernetes PDF
6 pages
The Heap Size in Weblogic
PDF
No ratings yet
The Heap Size in Weblogic
6 pages
What Are The Different Type of SQL's Statements
PDF
No ratings yet
What Are The Different Type of SQL's Statements
10 pages
Git Workflows: Sylvain Bouveret, Grégory Mounié, Matthieu Moy 2017
PDF
No ratings yet
Git Workflows: Sylvain Bouveret, Grégory Mounié, Matthieu Moy 2017
23 pages
J2EE Best Practices
PDF
No ratings yet
J2EE Best Practices
98 pages
Git Basics: Version Control Where Clients Must Synchronize Code With A Server Before Creating New Versions of Code
PDF
No ratings yet
Git Basics: Version Control Where Clients Must Synchronize Code With A Server Before Creating New Versions of Code
5 pages
Case Study - Git
PDF
No ratings yet
Case Study - Git
4 pages
RedHat Ansible Automation Platform 2.4 - Getting Started With Automation Controller
PDF
No ratings yet
RedHat Ansible Automation Platform 2.4 - Getting Started With Automation Controller
27 pages
Git Branching PDF
PDF
No ratings yet
Git Branching PDF
8 pages
Common Git Commands
PDF
No ratings yet
Common Git Commands
9 pages
Docker Notes - 2023
PDF
No ratings yet
Docker Notes - 2023
7 pages
Jenkins From Scratch
PDF
No ratings yet
Jenkins From Scratch
95 pages
Best Practices For Using Git
PDF
No ratings yet
Best Practices For Using Git
2 pages
Struts Natraz Notes
PDF
No ratings yet
Struts Natraz Notes
197 pages
Kafka Cheat Sheets
PDF
No ratings yet
Kafka Cheat Sheets
1 page
Class Notes learningYAML
PDF
No ratings yet
Class Notes learningYAML
31 pages
Nehra Classes DevOps Syllabus
PDF
No ratings yet
Nehra Classes DevOps Syllabus
6 pages
Git Tutorial: Lars Vogel
PDF
No ratings yet
Git Tutorial: Lars Vogel
16 pages
Linux Admin
PDF
No ratings yet
Linux Admin
96 pages
How To Copy or Move Files From One Folder To Another Based On A List in Excel
PDF
No ratings yet
How To Copy or Move Files From One Folder To Another Based On A List in Excel
8 pages
Git and GitHub
PDF
No ratings yet
Git and GitHub
40 pages
Ibm Lotus Notes Domino 8: Building The Infrastructure: Certinside
PDF
No ratings yet
Ibm Lotus Notes Domino 8: Building The Infrastructure: Certinside
35 pages
Azure Resource Manager - Direct DevOps From Quality Thought
PDF
No ratings yet
Azure Resource Manager - Direct DevOps From Quality Thought
4 pages
GIT Notes
PDF
No ratings yet
GIT Notes
13 pages
Learn Python 3 - Modules Cheatsheet - Codecademy
PDF
No ratings yet
Learn Python 3 - Modules Cheatsheet - Codecademy
2 pages
What Is A Build 1547351531
PDF
No ratings yet
What Is A Build 1547351531
8 pages
Hibernate Tool
PDF
No ratings yet
Hibernate Tool
50 pages
Basic Git Commands - Atlassian Documentation
PDF
No ratings yet
Basic Git Commands - Atlassian Documentation
2 pages
Troubleshooting: Mysql Replication Problem
PDF
No ratings yet
Troubleshooting: Mysql Replication Problem
3 pages
Continuous Integration in Gitlab CI - CD With Drupal 8
PDF
No ratings yet
Continuous Integration in Gitlab CI - CD With Drupal 8
10 pages
SonarQube Notes
PDF
No ratings yet
SonarQube Notes
3 pages
Playing With Docker Container - Commands
PDF
No ratings yet
Playing With Docker Container - Commands
3 pages
Git Commands
PDF
No ratings yet
Git Commands
7 pages
Git and Github Annotated
PDF
No ratings yet
Git and Github Annotated
4 pages
4 - GIT - Dia4
PDF
No ratings yet
4 - GIT - Dia4
20 pages
Git Clean
PDF
No ratings yet
Git Clean
5 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Ansible Hands On Step by Step For Beginners
PDF
Ansible Hands On Step by Step For Beginners
Git Cheat Sheet: Getting Started
PDF
Git Cheat Sheet: Getting Started
Successful Git Branching Model
PDF
Successful Git Branching Model
Git Commands: Getting & Creating Projects
PDF
Git Commands: Getting & Creating Projects
Best Way To Use Git Commands
PDF
Best Way To Use Git Commands
Atlassian Git Cheatsheet PDF
PDF
Atlassian Git Cheatsheet PDF
Git - Github
PDF
Git - Github
DevOps Chapter 2
PDF
DevOps Chapter 2
11.interview C Coding Question
PDF
11.interview C Coding Question
Git Basic Commands
PDF
Git Basic Commands
GIT Cheat Sheet
PDF
GIT Cheat Sheet
Git Cheat Sheet: Working With Branches
PDF
Git Cheat Sheet: Working With Branches
Docker
PDF
Docker
Notes Git and Github
PDF
Notes Git and Github
Azure Kubernetes Service
PDF
Azure Kubernetes Service
Git Basic Usage Installation
PDF
Git Basic Usage Installation
GIT Esc Chicago 2010
PDF
GIT Esc Chicago 2010
DevOps Notes -2 (1) (1)
PDF
DevOps Notes -2 (1) (1)
Manish Angular Notes
PDF
Manish Angular Notes
Docklight Manual
PDF
Docklight Manual
Mongodb Dba Course Content
PDF
Mongodb Dba Course Content
Setting Up A Repository: Git Init
PDF
Setting Up A Repository: Git Init
Grid Monitoring With Nagios: Aries Hung, Joanna Huang, Felix Lee, Min Tsai Asgc WLCG T2 Asia Workshop TIFR, Dec 2, 2006
PDF
Grid Monitoring With Nagios: Aries Hung, Joanna Huang, Felix Lee, Min Tsai Asgc WLCG T2 Asia Workshop TIFR, Dec 2, 2006
Useful Git Commands List
PDF
Useful Git Commands List
Docker and Kubernetes PDF
PDF
Docker and Kubernetes PDF
The Heap Size in Weblogic
PDF
The Heap Size in Weblogic
What Are The Different Type of SQL's Statements
PDF
What Are The Different Type of SQL's Statements
Git Workflows: Sylvain Bouveret, Grégory Mounié, Matthieu Moy 2017
PDF
Git Workflows: Sylvain Bouveret, Grégory Mounié, Matthieu Moy 2017
J2EE Best Practices
PDF
J2EE Best Practices
Git Basics: Version Control Where Clients Must Synchronize Code With A Server Before Creating New Versions of Code
PDF
Git Basics: Version Control Where Clients Must Synchronize Code With A Server Before Creating New Versions of Code
Case Study - Git
PDF
Case Study - Git
RedHat Ansible Automation Platform 2.4 - Getting Started With Automation Controller
PDF
RedHat Ansible Automation Platform 2.4 - Getting Started With Automation Controller
Git Branching PDF
PDF
Git Branching PDF
Common Git Commands
PDF
Common Git Commands
Docker Notes - 2023
PDF
Docker Notes - 2023
Jenkins From Scratch
PDF
Jenkins From Scratch
Best Practices For Using Git
PDF
Best Practices For Using Git
Struts Natraz Notes
PDF
Struts Natraz Notes
Kafka Cheat Sheets
PDF
Kafka Cheat Sheets
Class Notes learningYAML
PDF
Class Notes learningYAML
Nehra Classes DevOps Syllabus
PDF
Nehra Classes DevOps Syllabus
Git Tutorial: Lars Vogel
PDF
Git Tutorial: Lars Vogel
Linux Admin
PDF
Linux Admin
How To Copy or Move Files From One Folder To Another Based On A List in Excel
PDF
How To Copy or Move Files From One Folder To Another Based On A List in Excel
Git and GitHub
PDF
Git and GitHub
Ibm Lotus Notes Domino 8: Building The Infrastructure: Certinside
PDF
Ibm Lotus Notes Domino 8: Building The Infrastructure: Certinside
Azure Resource Manager - Direct DevOps From Quality Thought
PDF
Azure Resource Manager - Direct DevOps From Quality Thought
GIT Notes
PDF
GIT Notes
Learn Python 3 - Modules Cheatsheet - Codecademy
PDF
Learn Python 3 - Modules Cheatsheet - Codecademy
What Is A Build 1547351531
PDF
What Is A Build 1547351531
Hibernate Tool
PDF
Hibernate Tool
Basic Git Commands - Atlassian Documentation
PDF
Basic Git Commands - Atlassian Documentation
Troubleshooting: Mysql Replication Problem
PDF
Troubleshooting: Mysql Replication Problem
Continuous Integration in Gitlab CI - CD With Drupal 8
PDF
Continuous Integration in Gitlab CI - CD With Drupal 8
SonarQube Notes
PDF
SonarQube Notes
Playing With Docker Container - Commands
PDF
Playing With Docker Container - Commands
Git Commands
PDF
Git Commands
Git and Github Annotated
PDF
Git and Github Annotated
4 - GIT - Dia4
PDF
4 - GIT - Dia4
Git Clean
PDF
Git Clean