Skip to content

Instantly share code, notes, and snippets.

@prasanthj
Created November 1, 2012 06:48
Show Gist options
  • Save prasanthj/3992227 to your computer and use it in GitHub Desktop.
Save prasanthj/3992227 to your computer and use it in GitHub Desktop.
ignore .git while compressing
tar cvfz app.tar.gz --exclude ".git/*" --exclude ".git" app/
tar cvf ~/app.tar --exclude .git --exclude "*.log" .
http://stackoverflow.com/questions/3069522/tarballing-without-git-metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment