git local git push code example Example 1: push a new branch git push -u origin <branch-name> Example 2: git push git push -u githubrepo master