I thought I had lost a previous branch I created under the name distanceFieldV2 (notice the capital V) and so I created another branch with the name distanceFieldv2 (now notice the lower v) Both were pushed to the remote repository and today I realized I should merge them into one. I tried to pull them to my local working directory using the following commands
git branch --track distanceFieldV2 origin/distanceFieldV2
git branch --track distanceFieldv2 origin/distanceFieldv2
which resulted in the error
fatal: A branch named 'distanceFieldApproximatedv2' already exists.
I'm sure there was no other branch with the name in the error before executing the second command.
How is this possible to have those two branches on the remote repository but when trying to track those in my local copy I'm not able to have them because apparently they have the same name?