Push only current branch to remote
when doing git push origin
without specifying the branch, by default it will push all your local branches to the remote, if you set
git config --global push.default current
will only push the current branch.
Written by Orlando Del Aguila
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#