Skip to content

Instantly share code, notes, and snippets.

@RikoKami
Created February 1, 2023 17:59
Show Gist options
  • Save RikoKami/653435a6d972d9f21f6966806301b348 to your computer and use it in GitHub Desktop.
Save RikoKami/653435a6d972d9f21f6966806301b348 to your computer and use it in GitHub Desktop.
Zipping and deleting folders recursively
# include with current commit filename
tar --exclude='*.git' --exclude='node_modules' -zcvf `git rev-parse HEAD`.tgz *
# simple
tar -zcvf filename.tgz *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment