mirror of
https://github.com/cheat/cheat.git
synced 2025-07-04 12:51:57 +02:00
Add revert in git cheat
This commit is contained in:
@ -142,3 +142,6 @@ git show :/cool
|
||||
|
||||
# Undo parts of last commit in a specific file
|
||||
git checkout -p HEAD^ -- /path/to/file
|
||||
|
||||
# Revert a commit and keep the history of the reverted change as a separate revert commit
|
||||
git revert <commit SHA>
|
||||
|
Reference in New Issue
Block a user