본문으로 건너뛰기
  1. Memo/

Git Submodule 메모

·
Git
작성자
hw5e
page.hw5e.cc
목차

깃 저장소 안에 다른 깃 저장소를 포함하려면 서브모듈을 사용한다.

저장소에 서브모듈 추가
#

서브모듈이 있어야 할 디렉토리에서

git submodule add git_저장소

서브모듈을 포함한 저장소 clone 하기
#

서브모듈을 포함한 깃 저장소를 그냥 클론하면 서브모듈 부분은 비어있다.

git submodule init
git submodule update
또는
git submodule update --init --recursive

git clone --recurse-submodules로 clone할 때 서브모듈까지 한꺼번에 할 수도 있다.

Pro Git 7.11 Git 도구 - 서브모듈

Reply by Email