Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ettingshausen/501a38d0e6a86eb3b5d7f0d3e4953bda to your computer and use it in GitHub Desktop.
Save ettingshausen/501a38d0e6a86eb3b5d7f0d3e4953bda to your computer and use it in GitHub Desktop.
Exclude .DS_Store file from tar.gz
tar -zcv --exclude='.DS_Store' -f file.tar.gz folder/

Create tar gz without .DS_Store & macOS copy-files

tar --disable-copyfile --exclude='.DS_Store' -cvzf wn-fr.tar.gz winningreport
@ettingshausen
Copy link
Author

And zip ignore

zip -r his_middleware.zip ./ -x ".git/*" ".DS_Store" "README.md"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment