rename branch locally git code example Example: edit branch name git $ git checkout Branch-Name-You-Want-to-Change $ git branch -m New-Branch-Name