From 8531144be708527ff1543cfa37248e8433d3eb2c Mon Sep 17 00:00:00 2001 From: euer Date: Sun, 9 Dec 2012 21:15:36 +0100 Subject: add reference to checkout_tutorial --- retiolum/doc/git_checkout_only_hosts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'retiolum/doc') diff --git a/retiolum/doc/git_checkout_only_hosts b/retiolum/doc/git_checkout_only_hosts index 6deede29..2286169d 100644 --- a/retiolum/doc/git_checkout_only_hosts +++ b/retiolum/doc/git_checkout_only_hosts @@ -1,6 +1,11 @@ -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 +# 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 -- cgit v1.2.3