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