From dc65a8cd6d13eb1f69b5a04a0ba6fe1c68cd0627 Mon Sep 17 00:00:00 2001 From: Simon Merrick Date: Sat, 29 Apr 2023 09:38:01 +1200 Subject: [PATCH] Update readme with docs for smaller checkout and checkout of specific tag (#25) --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ec0f3e5..bb49b10 100644 --- a/README.md +++ b/README.md @@ -48,13 +48,19 @@ Currently tgenv supports the following OSes ### 1. Cloning the repository -Check out tgenv into any path (here is `${HOME}/.tgenv`) +Check out latest version of tgenv ```bash - $ git clone https://github.com/tgenv/tgenv.git ~/.tgenv + $ git clone --depth 1 --branch main https://github.com/tgenv/tgenv.git ~/.tgenv ``` -### 2. Export to PATH +Or checkout tgenv at specific tag + + ```bash + $ git clone --depth 1 --branch v1.0.0 https://github.com/tgenv/tgenv.git ~/.tgenv + ``` + +### 2. Add tgenv to $PATH #### Bash