I named the branch Nameinstead Nameand would like to change it to the last.
I tried to rename the branch locally:
git branch -m tmp
Removing a branch on github:
git push origin --delete Name
Renaming a temp branch:
git branch -m name
Pushing a branch on github:
git push origin name
But when I click the branch on github, I get this output:
Total 0 (delta 0), reused 0 (delta 0)
To https:
* [new branch] name -> Name
Why did github rename a branch when I clicked it? How to rename my branch from Nameto Name?
source
share