From 42d613d725fede5bf397b88d515cdbc3670b635e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 9 Jul 2016 11:38:09 +0200 Subject: Add note on how to undo last commit --- cheatsheet.txt | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.1