https://pinedance.github.io/blog/2019/05/28/Git-Submodule git submodule init git submodule update move submodule directory -> git checkout master git checkout master OR git submodule foreach git checkout master