한 레포지토리에 여러 파일들이 있고 그 중에 특정 디렉토리만 클론받아 사용하려고 하는 경우가 가끔씩 있다.
$ git init
$ git remote add -f origin [repository url]
$ git config core.sparseCheckout true
$ echo [디렉토리(path)] > .git/info/sparse-checkout
$ git pull origin [branch]