aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaralan Dobrev <hkdobrev@gmail.com>2014-06-14 14:16:10 +0300
committerMathias Bynens <mathias@qiwi.be>2014-06-14 13:32:19 +0200
commit1f8d15030ca67ad206a641d5785fceaeac422441 (patch)
treecb1a3dd3959448faacb0b3b90adfe9a5819b9f19
parentf44b1c50f696d019ad4be5d3f3cf81d4964e9bb1 (diff)
downloaddotfiles-1f8d15030ca67ad206a641d5785fceaeac422441.tar.gz
dotfiles-1f8d15030ca67ad206a641d5785fceaeac422441.tar.bz2
dotfiles-1f8d15030ca67ad206a641d5785fceaeac422441.zip
.gitconfig: Add default Git `push.default` config
Use the backwards-compatible `matching` setting by default. On machines with newer Git installations, it avoids the annoying Git warning, and it can be overriden to use `simple` instead in `~/.extra`. Closes #400.
-rw-r--r--.gitconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index cf4b14e..3238150 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -117,6 +117,13 @@
# Include summaries of merged commits in newly created merge commit messages
log = true
+[push]
+
+ # Use the Git 1.x.x default to avoid errors on machines with old Git
+ # installations. To use `simple` instead, add this to your `~/.extra` file:
+ # `git config --global push.default simple`. See http://git.io/mMah-w.
+ default = matching
+
# URL shorthands
[url "git@github.com:"]