From bf67834881198a4bf8204db82e17b602a358aa50 Mon Sep 17 00:00:00 2001 From: Joan Leon Date: Fri, 5 Feb 2016 08:07:38 +0100 Subject: [PATCH] Check out to latest version --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index daa29b8..1c7c99c 100644 --- a/README.markdown +++ b/README.markdown @@ -44,7 +44,7 @@ For manual install create a folder somewhere in your filesystem with the `nvm.sh Or if you have `git` installed, then just clone it, and check out the latest version: - git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags` + git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --tags $(git rev-list --tags --max-count=1)` To activate nvm, you need to source it from your shell: @@ -59,7 +59,7 @@ Add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it For manual upgrade with `git`, change to the `$NVM_DIR`, pull down the latest changes, and check out the latest version: - cd "$NVM_DIR" && git pull origin master && git checkout `git describe --abbrev=0 --tags` + cd "$NVM_DIR" && git pull origin master && git checkout `git describe --tags $(git rev-list --tags --max-count=1)` ## Usage