Skip to content

Instantly share code, notes, and snippets.

@joyeecheung
Last active November 14, 2017 05:52
Show Gist options
  • Save joyeecheung/4091d0bcb46c4196dcdb5b37ff5f5e4f to your computer and use it in GitHub Desktop.
Save joyeecheung/4091d0bcb46c4196dcdb5b37ff5f5e4f to your computer and use it in GitHub Desktop.
Quickly download a repo at a ref without git history, useful if you need multiple tag/commit/branch of it
REF=8680bb9
# The following work as well
# REF=master
# REF=V8.x-staging
# REF=V8.9.1
wget https://github.com/nodejs/node/archive/$REF.tar.gz
mkdir -p $REF
tar zxvf $REF.tar.gz -C $REF --strip-components=1
cd $REF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment