Develop
git 일부 체크아웃
작은이야기
2017. 1. 19. 10:51
svn은 하위 디렉토리를 체크아웃 할 수 있다.
git도 그런 기능이 1.7부터 추가 되었다.
mkdir <repo>
cd <repo>
git init
git config core.sparseCheckout true
git remote add -f origin <url>
echo "some/dir/" >> .git/info/sparse-checkout
echo "another/sub/tree" >> .git/info/sparse-checkout
git pull origin master
http://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository