Rename local and remote branch in Git
Rename branch locally and push to remote:
git branch -m <old-name> <new-name>
Push new branch to remote
git push origin -u <new-name>
Delete old branch remote:
git push origin -d <old-name>
Rename branch locally and push to remote:
git branch -m <old-name> <new-name>
Push new branch to remote
git push origin -u <new-name>
Delete old branch remote:
git push origin -d <old-name>