Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save deyvisonrocha/a14b047a34727bc6fd0675bb8793dcae to your computer and use it in GitHub Desktop.
Save deyvisonrocha/a14b047a34727bc6fd0675bb8793dcae to your computer and use it in GitHub Desktop.
How to zip files changed from between commits on git
git diff-tree -r --no-commit-id --name-only <LAST_COMMIT> <FIRST_COMMIT> | xargs tar -rf modified.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment