Git错误

作者: 网优仔 | 来源:发表于2018-05-17 11:32 被阅读0次

    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错误

          本文链接:https://www.haomeiwen.com/subject/qbcbdftx.html