From 05b4a12ae3249cc8197506f59fa85e2181226af4 Mon Sep 17 00:00:00 2001 From: euer Date: Sun, 9 Dec 2012 21:14:26 +0100 Subject: add tutorial for partial checkout retiolum hosts from repo --- retiolum/doc/git_checkout_only_hosts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 retiolum/doc/git_checkout_only_hosts (limited to 'retiolum/doc/git_checkout_only_hosts') diff --git a/retiolum/doc/git_checkout_only_hosts b/retiolum/doc/git_checkout_only_hosts new file mode 100644 index 00000000..6deede29 --- /dev/null +++ b/retiolum/doc/git_checkout_only_hosts @@ -0,0 +1,6 @@ +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 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/git_checkout_only_hosts') 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