Skip to content

Instantly share code, notes, and snippets.

@ml-eds
Created April 26, 2022 12:07
Show Gist options
  • Save ml-eds/7dc5619a929d5f57fe0a82edb604e205 to your computer and use it in GitHub Desktop.
Save ml-eds/7dc5619a929d5f57fe0a82edb604e205 to your computer and use it in GitHub Desktop.
git diff - export all changed files between two commits into tar archive
# export all changed files from commit b58b5f9 to commit HEAD into tar archive
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT b58b5f9^..HEAD | tar -czf file.tgz -T -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment