Thiago Farina <tfransosi@xxxxxxxxx> writes: > Do'h, now I can see the idiocy that I was doing. > > If I'm understanding this better, > $ git push origin master > tells git to push to remote origin, the contents of my master branch. Yes, add "to the 'master' at the 'origin'" at the end of the sentence and you are perfect. > And then, > > $ git push origin feature-work > tells git to push to remote origin to push the contents of feature-work branch. Yes. > Hence does not make sense to ask git to do "push origin master" while > inside feature-work branch. No. As long as you know your master is ready and suitable to be published when you ask "push", the command perfectly makes sense; it does not matter on what branch you are on. You may say $ git checkout master ... work work work ... $ make test ... ahh, perfection! ... $ git checkout -b feature ... let's build a bit more .. ... while I am having fun, let's not forget to push the ... part that is already solid out $ git push origin master and that is perfectly fine without "git checkout master" before pushing (and "git checkout feature" after to come back to what you were doing). -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html