Re: pushing branches

2012-07-21 Thread Junio C Hamano
Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

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

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

Re: pushing branches

2012-07-20 Thread Junio C Hamano
Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 8:26 AM, Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

2012-07-20 Thread Konstantin Khomoutov
On Fri, 20 Jul 2012 12:26:09 -0300 Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 12:46 PM, Junio C Hamano gits...@pobox.com wrote: Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

2012-07-20 Thread Matthieu Moy
Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

2012-07-20 Thread Thiago Farina
On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg p...@irregularexpressions.net wrote: On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina tfrans...@gmail.com 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

Re: pushing branches

2012-07-20 Thread PJ Weisberg
On Fri, Jul 20, 2012 at 6:40 PM, Thiago Farina tfrans...@gmail.com wrote: On Fri, Jul 20, 2012 at 4:19 PM, PJ Weisberg p...@irregularexpressions.net wrote: On Fri, Jul 20, 2012 at 8:49 AM, Thiago Farina tfrans...@gmail.com wrote: What I'm looking for is to upload/create the remote branch in