checkout and push new branch code example Example: push a new branch git push -u origin <branch-name>