Ian McNally

Git push to a different remote branch

August 08, 2014

If you want to push a local branch to a differently named remote branch:

git push remote local_branch:remote_branch

i.e., if I wanted to push my local branch named supercool to origin other cool I would:

git push origin supercool:othercool


Ian McNally

Hey, I'm Ian. I build websites and write about what I learn as I go. Follow me on Twitter.