Skip to content

Instantly share code, notes, and snippets.

@eriksimonic
Created January 3, 2017 09:17
Show Gist options
  • Save eriksimonic/23cd52af07faddd3089fd56cb54d53b6 to your computer and use it in GitHub Desktop.
Save eriksimonic/23cd52af07faddd3089fd56cb54d53b6 to your computer and use it in GitHub Desktop.
Create git commit archive.
git archive -o .zip [id] $(git diff-tree --no-commit-id --name-only -r [id])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment