aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cheatsheet.txt4
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"