1

Each time someone pushed to develop, Git is creating the wrong path with small letter like /work/someDirectory/me.php instead of /work/SomeDirectory/me.php

That give us untracked files as /work/SomeDirectory/me.php and /work/someDirectory/me.php with the small letter cannot be found even it gives it is created

Can anyone explain why?

Eli Sadoff
  • 7,173
  • 6
  • 33
  • 61
Code lover
  • 11
  • 1
  • is the someone using a mac? – DevDonkey Oct 31 '16 at 09:24
  • Possible duplicate of [How do I commit case-sensitive only filename changes in Git?](http://stackoverflow.com/questions/17683458/how-do-i-commit-case-sensitive-only-filename-changes-in-git) – Whymarrh Oct 31 '16 at 10:41

1 Answers1

1

Check if your Mac filesystem is case sensitive or not.
And set core.ignorecase to false.

Then, with Git 2.0+, record the right case with a git mv.
Try and push that commit, and see if a new git clone still exhibit the case change.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250