Last Updated: February 25, 2016
·
1.834K
· gshutler

Git push default

I don't like the default behaviour of pushing all tracked branches when you just say:

git push

I'd much rather it push to whatever branch my current branch is tracking. Fortunately, there's a setting for just that behaviour:

git config --global push.default upstream

There are other options available that may suit you better detailed in http://man.github.com/git/git-config.html