new branch first push code example Example: create a new branch and publish gitub git checkout -b <branch> git push -u origin <branch>