添加submodule
git submodule add 倉庫地址 路徑
拉取代碼時(shí)包含submodule
git clone https://gitproject-xxx --recurse-submodules
已下在的項(xiàng)目中沒有下載到submodule
git submodule init # 初始化本地配置文件
git submodule update # 從該項(xiàng)目中抓取所有數(shù)據(jù)并檢出父項(xiàng)目中列出的合適的提交。
子項(xiàng)目有更新時(shí)拉取
git submodule update –remote