Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jamesmorrish/6039032 to your computer and use it in GitHub Desktop.
Save jamesmorrish/6039032 to your computer and use it in GitHub Desktop.
Export changes between to revisions in a GIT repository
git diff --name-only SHA1 SHA2 | xargs tar -cvzf myFile.tar.gz
Where SHA1 is first revision and SHA2 is last revision.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment