HOWTO: setup a new remote git branch

  • on local machine, create the branch git branch mynewbranch

    • push to remote git push origin mynewbranch

    • remove local branch git branch -d mynewbranch

    • pull down new remote branch git checkout -b mynewbranch origin/mynewbranch

For any other nodes which need this branch: git fetch origin git checkout -b mynewbranch origin/mynewbranch

Based on http://progit.org/book/ch3-5.html, which has the clearest explanation I’ve seen.