Fill these in once
- Rename it on your machine
git branch -m old-name new-name - Push the new name to GitHub
git push -u origin new-name - Delete the old name from GitHub
git push origin --delete old-name
Check it worked
- See all branches here and on GitHub
git branch -a
- Rename it on your machine
git branch -m old-name new-name - Push the new name to GitHub
git push -u origin new-name - Delete the old name from GitHub
git push origin --delete old-name
Check it worked
- See all branches here and on GitHub
git branch -a
- Rename it on your machine
git branch -m old-name new-name - Push the new name to GitHub
git push -u origin new-name - Delete the old name from GitHub
git push origin --delete old-name
Check it worked
- See all branches here and on GitHub
git branch -a