뇌운동일지

git repository 내의 특정 폴더만 pull 하고 싶을 때 본문

purple duck 일지

git repository 내의 특정 폴더만 pull 하고 싶을 때

purpleduck 2021. 10. 5. 10:45

git init 

git config core.sparseCheckout true

git remote add -f origin https:// ~~ 

echo "가져오고 싶은 폴더명" >> .git/info/sparse-checkout

git pull origin master

 

참고자료)

https://www.lesstif.com/gitbook/git-clone-20776761.html

Comments