I don\'t want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories.
How can I rename a local branch wh
To rename a branch locally:
git branch -m [old-branch] [new-branch]
Now you'll have to propagate these changes on your remote server as well.
To push changes of the deleted old branch:
git push origin :[old-branch]
To push changes of creation of new branch:
git push origin [new-branch]