How to rename local and remote branch on Git
Have you been on a rush and created a branch with orthographic errors?
So its very simple gets rid of this mistake. Even if you had pushed into remote
Renaming local branch
Its very simple, just use the
git branch -m old_branch new_branch
But if want to delete pushed branches to?
git push origin : old_branch
Then push your new branch to origin
git push --set-upstream origin new_branch