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
Written by Garry Shutler
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#