I also got that error but I fixed it with:git commit -m"your commit"
before :git branch -M main
and it worked correctly
↧
Answer by Antonio Francisco Hernández for git: rename local branch failed
↧
I also got that error but I fixed it with:git commit -m"your commit"
before :git branch -M main
and it worked correctly