Git错误

Pathspec 'xxx' is in submodule

git rm -rf --cached CocktailMakerModule/
git add CocktailMakerModule/

unable to index file

  • 错误:
error: unable to index file third_party
fatal: updating files failed
  • 解决方法:
    进入对应目录再重新git add
cd third_party
git add .

再重新提交:

git commit -m "Trying to commit from command line"

你可能感兴趣的:(Git错误)