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