I'm trying to rename a branch of my project, using
git branch -m old_branch_name new_brach_name
to rename the local branch, which works just fine and the local branch is renamed. But after deleting the old branch name from the remote (either on github or in the git shell) and using
git push origin new_branch_name
I get this output
Counting objects: 92, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (60/60), done.
Writing objects: 100% (92/92), 488.48 KiB | 0 bytes/s, done.
Total 92 (delta 3), reused 0 (delta 0)
To https://github.com/<username>/<repo_name>.git
* [new branch] new_branch_name -> old_branch_name
And the old branch name still shows on both the remote and on github.
What gives? I've googled and searched here quite a bit and I can find no other instance of someone renaming a branch and having git rename it back when pushing it to the remote.