Skip to content

Instantly share code, notes, and snippets.

@Jmaharman
Created June 27, 2014 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jmaharman/5e9a22bd198432e89418 to your computer and use it in GitHub Desktop.
Save Jmaharman/5e9a22bd198432e89418 to your computer and use it in GitHub Desktop.
Create zip of file changes between head and previous commit
git archive --format=zip HEAD `git diff HEAD^ HEAD --name-only` > modified-files.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment