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
On the Git branch, run:
git branch -m old_name new_name
This will modify the branch name on your local repository:
git push origin :old_name new_name
This will push the modified name to the remote and delete the old branch:
git push origin -u new_name
It sets the local branch to track the remote branch.
This solves the issue.