Rename git branch
First checkout to the branch which you want to rename:
1 2 3 |
git branch -m old_branch new_branch git push -u origin new_branch |
To remove an old branch from remote:
1 |
git push origin :old_branch |