No submodule mapping found in .gitmodules for path and missing .gitmodules file

前端 未结 4 947
野趣味
野趣味 2021-02-01 00:44

When I run git submodule init, I get the following error:

No submodule mapping found in .gitmodules for path \'xxx\'

I

4条回答
  •  再見小時候
    2021-02-01 00:51

    just got over the same issue yesterday, after having deleted by hand the entry in .gitmodules (e.g. nano .gitmodules), I had to go with

    git rm --cached  
    

    which returned a message

    rm ''
    

    then I needed a

    git commit -m "delete cached modules"
    

    and validated the submodule deletion.

提交回复
热议问题