728x90 git submodule init1 Git submodule, 깃 서브모듈 첫걸음 (fatal: not a git repository (or any of the parent directories): .git) Git submodule, 서브모듈 예제로 하위 프로젝트 여러 개를 가지는 프로젝트를 하나 만들어 서브모듈의 기능을 살펴보자. 작업할 Git 저장소에 미리 준비된 리모트 Git 저장소를 서브모듈로 추가해보자. 서브모듈을 추가하는 명령으로 git submodule add 뒤에 추가할 저장소의 URL을 붙여준다. 이 URL은 절대경로도 되고 상대경로도 된다. 예제로 “banana” 라는 라이브러리를 추가한다. $ git submodule add https://github.com/{url} Cloning into 'banana'... remote: Counting objects: 10, done. remote: Compressing objects: 100% (10/10), done. remote: Total .. 2023. 2. 17. 이전 1 다음 728x90