Xcode - error: pathspec '...' did not match any file(s) known to git -
i using local git repo. when try commit changes core data model file (.xcdatamodel), message:
error: pathspec '.../datamodel.xcdatamodeld/datamodel.xcdatamodel/contents' did not match file(s) known git.
how fix , commit model other file?
the chosen answer specific own question , gives 0 insight on actual cause. problem indeed, mentioned before changing of filename's case. me because of macbook/osx. apparently windows has same 'thing'.
cause: git isn't able recognise change 'filename' 'filename'.
here's list of solutions stumbling upon this. should run @ project root:
the permanent fix work on current , future projects
change git case setting. file should committed afterwards
git config core.ignorecase false --global
the project fix
git config core.ignorecase false
the just give me line of code can move on fix - credit bruce
git commit -a -m "pathspec did not match file(s) known git fix"
the i paid hour fix
delete file. commit. push. add file again. commit. push.
Comments
Post a Comment