GitRemotes

git push

Uploads local commits on the current branch to a remote repository.

Syntax

git push <remote> <branch>

Examples

Push the current branch to origin

git push origin HEAD

Push a new branch and set it to track the remote

git push -u origin feature/new-login

Related commands