From d908e04f90dfeb01665c6311aa36915d0fc73a18 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 11 Feb 2022 18:10:55 +0000 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c1cbb46..ad1a1f5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # homelab -Monolithic repository for my homelab \ No newline at end of file +Monolithic repository for my homelab + +# Pulling Only Relevant Subdir +Per: https://stackoverflow.com/questions/4114887 + +```bash +~$ mkdir homelab && cd homelab/ +git init +git config core.sparseCheckout true +git remote add -f origin ssh://git@gitlab.jafner.net:2229/Jafner/homelab.git +echo "" > .git/info/sparse-checkout +git checkout main +```