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

Change 'eol' for all files from CLRF to LF in Visual Studio Code


git config core.autocrlf false 
git rm --cached -r . 
git reset --hard