Skip to the content.

Push local branch to remote in Git

To publish a local branch under a different name in a remote Git repo.

$ git push <REMOTE> <LOCAL_BRANCH>:<REMOTE_BRANCH>

Example

$ git push origin rest-importer:wip/rest-importer