Skip to content

Instantly share code, notes, and snippets.

View bugwrangler's full-sized avatar
:octocat:
I may be slow to respond.

Abhinav Sejpal bugwrangler

:octocat:
I may be slow to respond.
View GitHub Profile

Zip excluding specific directories

Exclude .git file and node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/\*

Exclude .git file and files in node_modules directory, but keep node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/**\*
184@carioca.net OR
40144634@china.com OR
958002011925@cmmail.com OR
aaa@163.com OR
aaaa@ai.net OR
aaaa@public.xm.fj.cn OR
联想包月卡@com.com OR
abcd@tonghua.com.cn OR
abc@sss.com OR
aboutmail@aboutmail.com.cn OR