Git 子模块使用

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/submodule
0%