Skip to content

Instantly share code, notes, and snippets.

@dreadwarrior
Created October 29, 2012 11:07
Show Gist options
  • Save dreadwarrior/3972979 to your computer and use it in GitHub Desktop.
Save dreadwarrior/3972979 to your computer and use it in GitHub Desktop.
Git: archive/package from a given repository with a given tag into a tar.gz
git archive --format=tar --prefix=myCoolTool/ --remote=file:///home/path/to/myCoolTool/ tags/v1.0 | gzip >myCoolTool_v1.0.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment