Git 子模块使用 不北咪 收录于 Git2025年12月27日 15:00:00 2025年12月27日 15:10:56 约 100 字 预计阅读 1 分钟 - 次阅读 目录 删除子模块1、删除子模块 1 2 3 4 5 6 7 8 # 从配置中删除子模块信息。.git/config git submodule deinit -f path/to/submodule # 删除 git 子模块文件 rm -rf .git/modules/path/to/submodule # 取消跟踪子模块文件 git rm -f path/to/submodulePlease enable JavaScript to view the comments powered by giscus.