How to rename a branch to remove capitalization?

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://github.com/xx/xx.git
 * [new branch]      name -> Name

Why did github rename a branch when I clicked it? How to rename my branch from Nameto Name?

+4
source share
1 answer

Use git push origin name:nameto determine how the branch will be called on the server. You probably have the name of the remote branch in a .git / config file that has not been updated.

+2
source

All Articles