Skip to content

Instantly share code, notes, and snippets.

@k-maru
Created June 12, 2019 00:57
Show Gist options
  • Save k-maru/0ec36c7858d368a49e30fcee21db40bd to your computer and use it in GitHub Desktop.
Save k-maru/0ec36c7858d368a49e30fcee21db40bd to your computer and use it in GitHub Desktop.
Gitから一部のディレクトリだけを取得する方法
git init
git config core.sparsecheckout true
git remote add origin リポジトリのURL
echo set/your/taret/directory/ > .git/info/sparse-checkout
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment