Git: Set Case Sensivity In Mac OS X
Since Mac OS X uses a case insensitive (but case preserving) file system if you’re on Mac OS X save yourself some time and change your git configuration to be case sensitive on filenames. Otherwise the problem as seen below in the gif will happen.
You can set this in your git global config like so:
Read more about it here