11194 shaares
390 private links
390 private links
- Rename your local branch
git branch -m old-name new-nameor simplygit branch -m new-namefor the current branch. - Delete the old-name remote branch and push the new-name local branch
git push origin old-name new-name - Reset the upstream branch for the new-name local branch
git push origin -u new-name