From 7086eda9c43d76bae13551c0ddb733a494f48be9 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 7 Jan 2023 09:50:22 -0800 Subject: [PATCH] Add git subtree install option --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0bb8d136..aea3d101 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,27 @@ Update: $ hugo mod get -u ``` -### Option 2: Use a Git submodule +### Option 2: Use a Git subtree + +Example `config.yaml`: + +```yaml +theme: "paige" +``` + +Install: + +```sh +$ git subtree add --prefix themes/paige --squash https://github.com/willfaught/paige.git master +``` + +Update: + +```sh +$ git subtree pull --prefix themes/paige --squash https://github.com/willfaught/paige.git master +``` + +### Option 3: Use a Git submodule Example `config.yaml`: @@ -139,7 +159,7 @@ $ cd yourproject $ git submodule update --recursive --remote ``` -### Option 3: Use a copy +### Option 4: Use a copy Example `config.yaml`: