Skip to content

Instantly share code, notes, and snippets.

@smithkyle
Created July 17, 2011 09:17
Show Gist options
  • Save smithkyle/1087391 to your computer and use it in GitHub Desktop.
Save smithkyle/1087391 to your computer and use it in GitHub Desktop.
git snippet for archiving only the changed files between two given commits
<commit1> recent commit
<commit2> previous commit
git archive --format zip -o testing.zip <commit1> `git diff <commit1> <commit2> --name-only`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment