Thursday, April 8, 2021

git submodule

 

Already in git repo

git submodule update --init --recursive.


Update remotely


Since git 1.8 you can do

git submodule update --remote --merge

This will update the submodule to the latest remote commit. You will then need to commit the change so the gitlink in the parent repository is updated

git commit

No comments:

Post a Comment