Skip to content

Instantly share code, notes, and snippets.

@christophwolff
Created March 8, 2019 15:13
Show Gist options
  • Save christophwolff/6d9bd57375a0d8dc05e4664178da82e4 to your computer and use it in GitHub Desktop.
Save christophwolff/6d9bd57375a0d8dc05e4664178da82e4 to your computer and use it in GitHub Desktop.
Using Git to create an archive of changed files.
git archive -o update.zip HEAD $(git diff --name-only HEAD^)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment