1
我试图从我的回购中删除子模块。这是我使用去除回购步骤:Git:删除子模块错误
Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes git add .gitmodules
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule
但是当我跑这个命令git rm --cached path_to_submodule
我得到这个错误:
fatal: Please stage your changes to .gitmodules or stash them to proceed
如果跑git status
我得到这个消息:
fatal: Not a git repository:path to submodule
你们中的任何人都知道我为什么或者如何去除子模块?
我真的很感谢你的帮助。
感谢这使得伎俩 – user2924482