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