aboutsummaryrefslogtreecommitdiff
path: root/cheatsheet.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cheatsheet.txt')
-rw-r--r--cheatsheet.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/cheatsheet.txt b/cheatsheet.txt
index d3b6906..4413252 100644
--- a/cheatsheet.txt
+++ b/cheatsheet.txt
@@ -10,6 +10,12 @@ Global Setup
git config --global remote.origin.tagopt --tags
+ # Starting 2.20 the above doesn't work anymore and should be replaced:
+ #
+ git config --global remote.origin.fetch "+refs/tags/*:refs/tags/*"
+ git config --global --unset remote.origin.tagopt
+
+
Undo (move to index) last commit
git reset --soft HEAD~