pushing to a new branch git code example Example 1: git new branch push to remote git push -u origin <branch> Example 2: git push branch git push -u origin <branch>