Git tar and gzip last commit diff

git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT HEAD | xargs tar czvf last_commit.tar.gz

Share

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.