pushing branches
- From
Thiago Farina <tfransosi@gmail.com>
- Date
- Jul 20, 2012, 15:26 UTC
- Message-ID
- <CACnwZYdqP_ptj0++dj5NkCoKWKHiLEj+c0t7zrmNidkHsyzMgw@mail.gmail.com>
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 gives me a [rejected] error. Everything up-to-date.
$ git checkout master $ git push origin feature-work # Now the branch is pushed.
Thanks,