diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-09 11:38:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-09 11:38:09 +0200 |
commit | 42d613d725fede5bf397b88d515cdbc3670b635e (patch) | |
tree | 77d493fc220cfb0dd398420dcf4e24c49fbc331e | |
parent | e9f1b8f78c02271a80bfbd95f4aa3b0d3d81d0b8 (diff) |
Add note on how to undo last commit
-rw-r--r-- | cheatsheet.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cheatsheet.txt b/cheatsheet.txt index 69ad78c..80cf299 100644 --- a/cheatsheet.txt +++ b/cheatsheet.txt @@ -4,6 +4,10 @@ Global Setup git config --global color.status.branch magenta +Undo (move to index) last commit + + git reset --soft HEAD~ + Tag git tag -a X.Y.Z -m "Tag version X.Y.Z" |