기본개념

git 하위 디렉토리만 다운받기

우와해커 2020. 3. 9. 14:48

mkdir opencv_sample

 

cd opencv_sample

 

git init

 

git config core.sparsecheckout true

 

git remote add -f origin https://github.com/opencv/opencv.git

 

echo samples/python/tutorial_code/* > .git/info/sparse-checkout

 

git pull origin master

 

출처: https://webnautes.tistory.com/1387

 

저작자표시 (새창열림)