How to rename local git branches rename local branch git branch -m old-branch-name new-branch-name delete remote branch with old name git push origin :old-branch-name create remote renamed branch git push origin new-branch-name