From 05f1a7ab5c961f968b85892093288d1d7031741a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 16 May 2019 17:10:49 +0200 Subject: Update git cheatsheet --- cheatsheet.txt | 9 ++++----- 1 file 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 -- cgit v1.1