The problem that the submodule of sourcetree cannot be displayed after modification

I have encountered a problem in the past two days. The following


sourceTree has modified my submodule, deleted the original through the interface, and added a new submodule, but found the submodule area, it cannot display the new content, what? I haven't


checked that the path in the .submodule has been updated to the latest, so the problem is not here
. Execute the command through git submodule update, and it prompts that the submodule path that was originally deleted cannot be found, indicating that the remaining configuration has not been deleted.


Solution As shown

in the config file in the .git folder, you
will Delete it and

execute
git rm --cached <This location follows the original storage path, that is, the update command above prompts it that residual path of >

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326298043&siteId=291194637