git-子模块
添加子模块
bash
# git submodule add <url> <repo_name>
$ git submodule add https://github.com/user/Repo.git repo查看子模块
$ git submodule
d74c6374cc6184dcf2ff4867b29bf47c660ccb95 answer (Release25.0217.1731.49-1-gd74c637)$ git submodule add http://gitee.com/istr/answer.git answerGit 缓存问题导致子模块分支无法正确检出
# 清理子模块缓存
git submodule deinit -f element-plus
rm -rf .git/modules/element-plus
rm -rf element-plus