Skip to content

Instantly share code, notes, and snippets.

@marcus-at-localhost
Forked from betweenbrain/gist:2284129
Created January 21, 2016 22:47
Show Gist options
  • Select an option

  • Save marcus-at-localhost/762f30849a579c4ae74b to your computer and use it in GitHub Desktop.

Select an option

Save marcus-at-localhost/762f30849a579c4ae74b to your computer and use it in GitHub Desktop.
Git command to export only changed files between two commits
git archive --output=file.zip HEAD $(git diff --name-only SHA1 SHA2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment