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
.
Written by Chris Missal
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#