git 저장소의 Lecture 라는 프로젝트내 폴더 구조가 다음과 같다.
이때 Spring이라는 폴더와 해당 폴더 내의 모든 파일을 클론 받고 싶다면,
// 3.1. git repo 초기화
git init
// 3.2. git sparse checkout 활성화
// 일부만 가져오는 기능 활성화
git config core.sparseCheckout true
// 3.3. git remote 저장소 주소 추가
git remote add origin <Repository URL>
// 3.4. clone하기 위한 sparse-checkout 파일 생성
// Spring 폴더 내의 모든 파일을 clone하고자 함
echo "Spring/*" >> .git/info/sparse-checkout
// 3.5. 받아오기!
git pull origin master