how to push git command code example Example 1: git push branch git push -u origin <branch> Example 2: git push git push -u githubrepo master