summaryrefslogtreecommitdiffstats
path: root/retiolum/doc/git_checkout_only_hosts
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/doc/git_checkout_only_hosts')
-rw-r--r--retiolum/doc/git_checkout_only_hosts11
1 files changed, 11 insertions, 0 deletions
diff --git a/retiolum/doc/git_checkout_only_hosts b/retiolum/doc/git_checkout_only_hosts
new file mode 100644
index 00000000..2286169d
--- /dev/null
+++ b/retiolum/doc/git_checkout_only_hosts
@@ -0,0 +1,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