Re: pushing branches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 22, 2012, 18:40 UTC
- Message-ID
- <7vobn7skp5.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CACnwZYcP7Ke-zyMLT8JBGt_BHS22G4cN6GYe+yauxXF6cVLZ1g@mail.gmail.com>
Thiago Farina <tfransosi@gmail.com> writes:
Show 15 quoted lines
> On Sat, Jul 21, 2012 at 4:33 PM, Junio C Hamano <gitster@pobox.com> wrote: >> 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. >> ... > In my case it wouldn't because I do not modify my master branch, I > just fetch upstream, merge upstream/master into my local master branch > and switch to feature-work, then git push origin master will always > give me "Everything up-to-date" I suppose (that is what always happen > in my case/workflow).
It would not make _any_ sense to ask "git push origin master" regardless of which branch you are on if that is the case, as you are not modifying, then.