aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cheatsheet.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/cheatsheet.txt b/cheatsheet.txt
index 4413252..42efbcd 100644
--- a/cheatsheet.txt
+++ b/cheatsheet.txt
@@ -5,14 +5,13 @@ Global Setup
git config --global color.status.branch magenta
- # This makes sure that changes to tags are also fetched.
+ # This makes sure that changes to tags are also fetched. The second
+ # version in addition makes sure they are overriden (required from
+ # git 2.20.0).
#
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 remote.origin.fetch '+refs/tags/*:refs/tags/*'
git config --global --unset remote.origin.tagopt