I just renamed my local branch using
git branch -m oldname newname
but this only renames the local version of the branch. How can I rename
Here is what worked for me:
Create the new branch first:
git push github newname :refs/heads/newname
On the GitHub site, go to settings and change the Default branch to newname
newname
Delete the oldname
oldname
git push github --delete oldname