Skip to content

Instantly share code, notes, and snippets.

@ethangardner
Last active January 6, 2016 21:28
Show Gist options
  • Save ethangardner/b7bc70e2a8c531cc70a8 to your computer and use it in GitHub Desktop.
Save ethangardner/b7bc70e2a8c531cc70a8 to your computer and use it in GitHub Desktop.
Zip modified files

Last Commit

git archive --format=zip HEAD `git diff HEAD^ HEAD --name-only` > a.zip

Diffs between 2 commits

tar -czf <file> $(git diff --name-only SHA1..SHA2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment