aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-05-16 17:10:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-05-16 17:10:49 +0200
commit05f1a7ab5c961f968b85892093288d1d7031741a (patch)
tree355b150fe37178a0ae3d7f0b3cab1193e233d0cd
parentf9f48cebcdfa18b572ae34509e60f095d83dd873 (diff)
Update git cheatsheetHEADmaster
-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