一、Git提交空目录

在空目录下touch一个空内容的.gitkeep进行标记

二、Git update submodules(更新submodule,其他人只需要git submodule update)

https://chrisjean.com/git-submodules-adding-using-removing-and-updating/#:~:text=Updating Submodules 1 Initialize the repository’s submodules by,have the latest updates. ... More items...

比如A项目里面有个submodule B,每次下载下来的B都是最初添加B时那个版本,如何更新B的版本呢?

提交者
cd B/
commit & push
cd ..
add B
commit & push
其他人 git update

相关文章: