Check out to latest version

This commit is contained in:
Joan Leon 2016-02-05 08:07:38 +01:00
parent 77e0449c89
commit bf67834881
1 changed files with 2 additions and 2 deletions

View File

@ -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: 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: 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: 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 ## Usage