Skip to content

Instantly share code, notes, and snippets.

@kriscooke
Created January 26, 2017 06:54
Show Gist options
  • Save kriscooke/114016b5a5c6e13167cb7e062a907333 to your computer and use it in GitHub Desktop.
Save kriscooke/114016b5a5c6e13167cb7e062a907333 to your computer and use it in GitHub Desktop.
Zip a directory but excluding git repo and other annoying files
zip -9 -r --exclude=*.git* --exclude=*.DS_Store* result.zip originalfolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment