Skip to content

Instantly share code, notes, and snippets.

@jimkang
Created November 1, 2018 16:54
Show Gist options
  • Select an option

  • Save jimkang/0b7274ea9e2eb4989662efbbcb537cdb to your computer and use it in GitHub Desktop.

Select an option

Save jimkang/0b7274ea9e2eb4989662efbbcb537cdb to your computer and use it in GitHub Desktop.
This is tar exclude command syntax that actually works on OS X. Run from the directory enclosing the project folder.
tar -zcvf project.tgz --exclude "./project/node_modules" ./project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment