git clone 에서 저장소의 특정 디렉토리만 클론하는 방법

git init 
git remote add -f origin [저장소]
git config core.sparseCheckout true
echo [저장할 위치] >> .git/info/sparse-checkout
git pull origin main 

참고 :

https://chinsun9.github.io/2022/01/02/git-clone-specific-directory/

https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *