3 ms·
`git push origin master` will only push your master branch to origin. `git push` will push every branch that is tracking a branch on origin; so if you had commi
by djm_ 13y ago
`git push origin master` will only push your master branch to origin. `git push` will push every branch that is tracking a branch on origin; so if you had commits on develop for example, they would also go up provided it was tracking the develop branch on origin.
Git v2 changes what `git push` does by default: only the current working branch will get pushed to origin.
- Anderkent 13y ago>`git push` will push every branch that is tracking a branch on origin; or rather, every branch that has the same name as a branch on currently tracked remote. I.e. if you're on branch X that tracks remote A, and both you and the remote have branches called Y and Z, even if Y and Z are marked to track B they will be pushed.