Skip to content

Instantly share code, notes, and snippets.

@rakeshtembhurne
Forked from atishgoswami/git.sh
Last active December 25, 2015 22:59
Show Gist options
  • Save rakeshtembhurne/7053838 to your computer and use it in GitHub Desktop.
Save rakeshtembhurne/7053838 to your computer and use it in GitHub Desktop.
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT HEAD~1 HEAD | xargs tar -rf ~/exports/export.tar
@rakeshtembhurne
Copy link
Author

Replace HEAD~1 with hash of from commit and HEAD with hash of to commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment