- Modify the local branch name
git branch -m oldName newName
- delete remote old branch
git push --delete origin oldName
- Upload a new local branch
git push origin newName
- Associate the remote branch with the local branch
git branch --set-upstream-to origin newName