git-branch - View 3+ more - How do I rename a local Git branch?
git push new branch / git / version-control
I don't want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories.
To rename a branch locally:
git branch -m [old-branch] [new-branch]
To push changes of the deleted old branch:
git push origin :[old-branch]
To push changes of creation of new branch:
git push origin