Git: Rename Remote Branch

Updated . Posted . Visible to the public.

You just have to create a new local branch with the desired name, push it to your remote, and then delete the old remote branch:

$ git branch new-branch-name origin/old-branch-name
$ git push origin new-branch-name
$ git push origin :old-branch-name
Luis Romero
Last edit
Posted by Luis Romero to Custom Exposure (2014-05-08 12:58)