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
Just remove the old branch and create new one.
Example (solely renaming the remote branch):
git push origin :refs/heads/oldname git push origin newname:refs/heads/newname
You also probably should rename local branch and change settings for where to push/pull.