I have a script which automatically creates a new branch with a name based on external information (JIRA ticket). I don\'t want to create the remote branch until I\'ve commi
You can use the -u option when you push to track your local branch
-u
git push -u origin myBranch
http://csurs.csr.uky.edu/cgi-bin/man/man2html?1+git-push