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
If you want to change the name of the current branch, run:
git branch -m [old_branch] [new_branch]
If you want to delete the old remote branch, run:
git push origin :[old_branch]
If you want to delete the old remote branch and create a new remote branch, run:
git push origin :old_branch new_branch