Skip to content

Instantly share code, notes, and snippets.

@davidmroth
Last active October 5, 2023 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmroth/abe44e4afbc100f8e3ea2a41b0fa7850 to your computer and use it in GitHub Desktop.
Save davidmroth/abe44e4afbc100f8e3ea2a41b0fa7850 to your computer and use it in GitHub Desktop.
Zip folder while excluding subfolders from the resulting *.zip while flattening the folder hierarchy
zip -x ./folder/subfolder/.git -jr file.zip ./folder/subfolder/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment