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
Just three steps to replicate change in name on remote as well as on GitHub:
remote
Step 1 git branch -m old_branchname new_branchname
git branch -m old_branchname new_branchname
Step 2 git push origin :old_branchname new_branchname
git push origin :old_branchname new_branchname
Step 3 git push --set-upstream origin new_branchname
git push --set-upstream origin new_branchname