git checkout new branch and push code example
Example 1: push a new branch
git push -u origin <branch-name>
Example 2: Push your branch up to the remote.
$ git push <remote> <branch>
git push -u origin <branch-name>
$ git push <remote> <branch>