Skip to content

Instantly share code, notes, and snippets.

@olsgreen
Created August 8, 2025 11:08
Show Gist options
  • Save olsgreen/e73928d4ffa0b8d3f3014eb94f4f0569 to your computer and use it in GitHub Desktop.
Save olsgreen/e73928d4ffa0b8d3f3014eb94f4f0569 to your computer and use it in GitHub Desktop.
Generate archive of differences between two commits
git archive --output=deployment-v1.zip HEAD $(git diff --name-only 8c4849795790b06cb848e4fc98c520946f4a68ab..HEAD --diff-filter=d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment