git push current branch
Posted
by Nocturne
on Stack Overflow
See other posts from Stack Overflow
or by Nocturne
Published on 2009-06-04T02:45:57Z
Indexed on
2010/03/15
0:59 UTC
Read the original article
Hit count: 445
I use the following command to push to my remote branch:
git push origin sandbox
If I say
git push origin
Does that push changes in my other branches too, or does it only update my current branch? (I have three branches: master, production and sandbox).
(The git push documentation is not very clear about this, so I'd like to clarify this for good)
What branches/remotes do the following git push commands exactly update?
git push
git push origin
("origin" above is a remote)
(I understand that "git push [remote] [branch]" will push only that branch to the remote)
© Stack Overflow or respective owner