use*_*482 5 git github git-submodules
我正在尝试从我的存储库中删除子模块。这是我用来删除存储库的步骤:
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
Run Code Online (Sandbox Code Playgroud)
但是当我运行此命令时, git rm --cached path_to_submodule我收到此错误:
fatal: Please stage your changes to .gitmodules or stash them to proceed
Run Code Online (Sandbox Code Playgroud)
如果运行git status我收到此消息:
fatal: Not a git repository:path to submodule
Run Code Online (Sandbox Code Playgroud)
你们中有人知道为什么或者如何删除子模块吗?
我将非常感谢你的帮助。