X-Code bugs

Xcode - error: pathspec ‘…’ did not match any file(s) known to git

The chosen answer is too specific to his own question and gives zero insight on the actual cause. The problem is indeed, as mentioned before the changing of a filename’s case. For me personally this is because of my Macbook/OSX. Apparently Windows has the same ‘thing’.

Cause: git isn’t able to recognise a change from ‘filename’ to ‘FileName’.

Here’s a list of solutions for anyone stumbling upon this. All should be run at the project root:

The Permanent fix that will work on current and future projects
Change the git case setting. The file should be committed afterwards

git config core.ignorecase false –global
The Project only fix
git config core.ignorecase false
The just give me a line of code so I can move on fix - credit to Bruce
git commit -a -m “pathspec did not match any file(s) known to git fix”
The I get paid by the hour fix
Delete the file. Commit. Push. Add the file again. Commit. Push.

reference

stackoverflow