summaryrefslogtreecommitdiffstats
path: root/retiolum/doc/git_checkout_only_hosts
blob: 2286169dade7cca4f5e06d37be2013f7f347aa5a (plain)
1
2
3
4
5
6
7
8
9
10
11
# Reference
http://jasonkarns.com/blog/subdirectory-checkouts-with-git-sparse-checkout/

# Code

  git init painload
  cd painload
  git remote add -f origin https://github.com/krebscode/painload.git
  git config core.sparsecheckout true
  echo retiolum/hosts/ >> .git/info/sparse-checkout
  git pull origin master