Re: pushing branches

2012-07-22 Thread Junio C Hamano
Thiago Farina writes: > On Sat, Jul 21, 2012 at 4:33 PM, Junio C Hamano 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

Re: pushing branches

2012-07-21 Thread Thiago Farina
On Sat, Jul 21, 2012 at 4:33 PM, Junio C Hamano 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

Re: pushing branches

2012-07-21 Thread Junio C Hamano
Thiago Farina 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 perf

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 10:58 PM, PJ Weisberg wrote: > In your original email, you had one command that did what you wanted > and one that didn't. > > $ git push origin master > $ git push origin feature-work > > Can you spot the difference between them? > Do'h, now I can see the idiocy that I was

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 6:40 PM, Thiago Farina wrote: > On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg > wrote: >> On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina wrote: >> >>> What I'm looking for is to upload/create the remote branch in github >>> from inside my local branch, without having to ch

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg wrote: > On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina wrote: > >> What I'm looking for is to upload/create the remote branch in github >> from inside my local branch, without having to checkout master in >> order to do so. > > In that case, do exactl

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina wrote: > What I'm looking for is to upload/create the remote branch in github > from inside my local branch, without having to checkout master in > order to do so. In that case, do exactly what you did, except don't checkout master. -PJ Gehm's Cor

Re: pushing branches

2012-07-20 Thread Matthieu Moy
Thiago Farina writes: > $ git push origin master # here I expected it would working pushing my > commits to a feature-work branch in github. Or if I omit master it > gives me a [rejected] error. > Everything up-to-date. If your workflow is to push one branch at a time, and you have the same nami

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 12:46 PM, Junio C Hamano wrote: > Thiago Farina writes: > >> How can I push a working branch to github inside it? >> >> E.g: >> >> # On master: >> $ git checkout -b feature-work >> >> # On feature-work >> # vi, hack, commit, ready to push >> $ git push origin master # here

Re: pushing branches

2012-07-20 Thread Konstantin Khomoutov
On Fri, 20 Jul 2012 12:26:09 -0300 Thiago Farina wrote: > How can I push a working branch to github inside it? > > E.g: > > # On master: > $ git checkout -b feature-work > > # On feature-work > # vi, hack, commit, ready to push > $ git push origin master # here I expected it would working push

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 8:26 AM, Thiago Farina wrote: > Hi, > > How can I push a working branch to github inside it? > > E.g: > > # On master: > $ git checkout -b feature-work > > # On feature-work > # vi, hack, commit, ready to push > $ git push origin master # here I expected it would working pu

Re: pushing branches

2012-07-20 Thread Junio C Hamano
Thiago Farina writes: > How can I push a working branch to github inside it? > > E.g: > > # On master: > $ git checkout -b feature-work > > # On feature-work > # vi, hack, commit, ready to push > $ git push origin master # here I expected it would working pushing my "git push origin master" is a

pushing branches

2012-07-20 Thread Thiago Farina
Hi, How can I push a working branch to github inside it? E.g: # On master: $ git checkout -b feature-work # On feature-work # vi, hack, commit, ready to push $ git push origin master # here I expected it would working pushing my commits to a feature-work branch in github. Or if I omit master it