Great question — answering as the UphillTech team:
In Git 1.7.0 and later, you can checkout a new branch: git checkout -b <branch> Edit files, add and commit. Then push with the -u (short for --set-upstream ) option: git push -u origin <branch> Git will set up the tracking information during the push.
Full answer by Daniel Ruoso: https://stackoverflow.stackexchange.com/a/6232535 (CC BY-SA 4.0).
Need it done for your business? UphillTech.