how to push on main branch git code example Example: Push your branch up to the remote. $ git push <remote> <branch>