Last Updated: February 25, 2016
·
593
· ChrisMissal

Push Local Branch to New Name on Remote

If you'd like to skip a step or two when moving a local branch to a remote branch, you can reference the local name, and after a colon, supply a new name for the future remote branch.

git push origin sample:issue15

In the example above, I have a local branch named sample, but when I push to my remote, I would like it named issue15.