Skip to content

Instantly share code, notes, and snippets.

@allenyang79
Last active November 28, 2017 07:16
Show Gist options
  • Save allenyang79/ae47c31b88712443bef3363c46387682 to your computer and use it in GitHub Desktop.
Save allenyang79/ae47c31b88712443bef3363c46387682 to your computer and use it in GitHub Desktop.
[uprade nvm] #nvm #bash
(
cd "$NVM_DIR"
git fetch origin
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
) && . "$NVM_DIR/nvm.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment