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