Skip to content

Instantly share code, notes, and snippets.

@kfriend
Created August 31, 2013 03:40
Show Gist options
  • Save kfriend/6396093 to your computer and use it in GitHub Desktop.
Save kfriend/6396093 to your computer and use it in GitHub Desktop.
Shell: Create tarball w/o git repo and cache system cache files
export COPYFILE_DISABLE=true && tar -czvf tarball.tar.gz --exclude='.DS_Store' --exclude='._*' --exclude='Thumbs.db' --exclude='.git' --exclude='.git*' /path/to/archive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment