我正在尝试从我的仓库中删除子模块。这是我用来删除仓库的步骤:
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
有没有人知道为什么或如何移除子模块?
非常感谢你的帮助。