Fork me on GitHub

Start a new git remote branch

Since I am tired of Googling it, I am going to post the commands required to start a new local branch in git, then push that to the origin, then pull it in to continue working on it. If you don’t know what I am talking about, that’s fine. I do. :-)

$ git checkout -b zzz
# Let the hacking commence...
$ git push origin zzz
$ git checkout master # see note 2
$ git branch -f zzz origin/zzz
$ git checkout zzz
# Let the hacking continue...
  1. No comments yet.

  1. No trackbacks yet.