0. Preparation
Checkout the branch you want to rename.
1. Rename local
$ git branch -m new-branch-name
2. Change remote
$ git push origin :old-branch-name new-branch-name
3. Update upstream
$ git push origin -u new-branch-name
0. Preparation
Checkout the branch you want to rename.
1. Rename local
$ git branch -m new-branch-name
2. Change remote
$ git push origin :old-branch-name new-branch-name
3. Update upstream
$ git push origin -u new-branch-name