My co-worker switched to a branch mistakenly using caps for the branch name. Everything seemed to work fine for him. He made a commit and pushed it.
Now however, doing a 'git branch' does not show the previous lower case branch name, and instead the upper case version, but there is no asterix (*) next to the branch name (see the image below).
[brettmac15:ehs-hybrid-prototype-2 kulpreetalagh$ git branch
UX
development
master
[brettmac15:ehs-hybrid-prototype-2 kulpreetalagh$ git status
On banch ux
You branch is up-to-date with 'origin/ux'.
nothing to commit, working tree clean
brettmac15:ehs-hybrid-prototype-2 kulpreetalagh$
Is this a bug, did he do something wrong, or is there a way to fix this?
git branch -m uxrefs/folder ?ls .git/refs/heads/HEAD?cat .git/HEADuxandUXare the same file, while your Git believes they are different branches. You can fix various names in your repository but you and your co-worker must agree to one particular capitalization and stick with it.