If you have this issue I suppose you use a case insensitive file system locally (branches are stored as files in .git directory) that means that git checkout QA
and git checkout qa
brings you to the same branch, even if you never created the qa
branch.
You can also check it with git branch
that list you only QA
and not qa
, but git checkout qa
works and brings you to the same commit pointed out by QA
(check with git log
also).
That said you can't rename QA
to qa
locally because for git is the same branch and will say you A branch named 'qa' already exists.
.
A solution could be create a backup branch, delete the original and rename the backup with the right name. Than push on the remote.
git branch qa_backup QA
git branch -d QA
git branch -m qa_backup qa
git push -u origin qa
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…