Skip to content

Instantly share code, notes, and snippets.

@NoriSte
Created March 20, 2019 10:20
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 NoriSte/a5de5b24893879995e44b7a69d443f08 to your computer and use it in GitHub Desktop.
Save NoriSte/a5de5b24893879995e44b7a69d443f08 to your computer and use it in GitHub Desktop.
Create an archive containing all the files changed between two commits
$ git diff --name-only IDCOMMIT1 IDCOMMIT2 | xargs tar -czf gitdiff-result.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment