Skip to content

Instantly share code, notes, and snippets.

@thegreenfield
Created July 28, 2014 13:31
Show Gist options
  • Save thegreenfield/a5eec36be0dcfea08669 to your computer and use it in GitHub Desktop.
Save thegreenfield/a5eec36be0dcfea08669 to your computer and use it in GitHub Desktop.
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT HEAD | xargs tar -rf mytarfile.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment