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

'Develop' 카테고리의 다른 글

object c++ 문자열 쪼개기, url에서 데이터 추출  (0) 2017.02.20
nodegit crash  (0) 2017.02.03
unity android app keystore  (0) 2017.01.12
mac, linux 파일 재귀 삭제  (0) 2017.01.10
윈도우즈 배치 재귀 파일 삭제  (0) 2016.12.27

+ Recent posts