Just Programming

한번에 git 서브모듈 업데이트하기

아기 요다 2021. 10. 25. 18:25

pull all submodule

https://pinedance.github.io/blog/2019/05/28/Git-Submodule

# in main project root folder
# git local config에 submodule을 인지시킴
# 명령 전후로 'git config --list --local'를 확인해 보자
git submodule init

# clone submodules
git submodule update

# checkout master each sub project ... (*)
# pull all submodule from master branch
git submodule foreach git checkout master

https://stackoverflow.com/questions/10168449/git-update-submodules-recursively

git submodule update --recursive --remote --merge