graphQL 레포지토리(https://github.com/siyoon210/spring-framework/tree/master/graphql/baeldung-example)를 클론하려고 하는데 해당 상위 리포지토리에는 내가 필요하지 않은 내용이 많았다. 따라서 특정 하위 폴더만 clone하는 방법을 찾아보았다.
git init graphQLProj
cd graphQLProj
sparse checkout
기능을 사용하면 원하는 디렉터리의 파일만 가져올 수 있다.git config core.sparseCheckout true
git remote add -f origin https://github.com/siyoon210/spring-framework.git
echo "graphql/baeldung-example" >> .git/info/sparse-checkout
git pull origin master
https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository
https://earth-95.tistory.com/92
https://www.lesstif.com/gitbook/git-clone-20776761.html