Working in a branch, trying to switch to the main trunk, I get the error message:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree checkout master
error: The following untracked working tree files would be overwritten by checkout:
LogLevels.cpp
Please move or remove them before you can switch branches.
Aborting
Completed with errors, see above
I created the file LogLevels.cpp, I renamed it as logLevels.cpp (lowercase initial), without letting git know. Now I commited all the changes in the branch, everything seems to be fine, but I cannot go back to the main trunk.
How can I fix this problem? I tried deleting the file from both the directory and from git, and copying it from backup, with no results.