9jpo8w
Last Updated: February 25, 2016
·
465
· ChrisMissal
3c4478e6ae6c60b73d21c9fa0d1785ea

Push Local Branch to New Name on Remote

git

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.

Say Thanks
Respond
Filed Under