HOW TO: Setup a new local & remote Git Branch
A question came up in the office today:
What’s the best way to create a new tracking branch both locally and on the server?
Steve decided this 2-liner was best:
git checkout -b newBranch git push -u origin newBranch
Have a better way? Let us know!