Skip to content

Instantly share code, notes, and snippets.

@cjlyth
Created August 4, 2014 19:10
Show Gist options
  • Save cjlyth/994d4245cff0579c40ba to your computer and use it in GitHub Desktop.
Save cjlyth/994d4245cff0579c40ba to your computer and use it in GitHub Desktop.
tar git commit
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $commit | xargs tar -rf $commit.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment