자주 사용하는 서브 모듈 명령어.
add submodule
git submodule add {remote-repo}
update
git submodule init
- git 에서 서브모듈을 관리하기위한 설정파일, gitmodules 를 설정한다.
git submodule update
- remote 저장소로부터 업데이트 내용을 가져와서 적용한다.
git submodule update --init
remove submodule
git submodule deinit -f {path}
rm -rf .git/modules/{path}
git rm -f {path}