#### 删除子模块
使用git 1.7.8或更高版本克隆的子模块会在本地项目中留下至多四条痕迹。 删除这四条曲线的过程由以下三条命令给出:
```bash
# Remove the submodule entry from .git/config
git submodule deinit -f path/to/submodule
# Remove the submodule directory from the superproject's .git/modules directory
rm -rf .git/modules/path/to/submodule
# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule
git rm -f path/to/submodule
```
出处:https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule/36593218#36593218