Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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