Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save robertfsegal/b48bee32ce44ca62b3ecb80a1efe2c36 to your computer and use it in GitHub Desktop.

Select an option

Save robertfsegal/b48bee32ce44ca62b3ecb80a1efe2c36 to your computer and use it in GitHub Desktop.
Archive a range of commits into a zip
# Taken from http://tosbourn.com/using-git-to-create-an-archive-of-changed-files/
#
git archive -o ~/Desktop/update.zip HEAD $(git diff --name-only f0ae46ac15a3d420c08de8ab440b4eb80b66bf7a --diff-filter=ACMRTUXB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment