diff --git a/pages/common/zip.md b/pages/common/zip.md index 7750484b8..b0e9db56b 100644 --- a/pages/common/zip.md +++ b/pages/common/zip.md @@ -13,3 +13,7 @@ - Remove unwanted files from an existing zip file: `zip -d {{compressed.zip}} "{{foo/*.tmp}}"` + +- Remove unwanted files from target dirs: + +`zip -r {{compressed.zip}} {{target_dirs}} -x \*.git\* \*node_modules\* ...`