git diff --name-only HEAD~1 HEAD | xargs tar -czf files.tar.gz
git diff --name-only HEAD~1 HEAD | > files.txt
#to get the hash of the current commit
git rev-parse HEAD
git diff --name-only HEAD~1 HEAD | xargs tar -czf files.tar.gz
git diff --name-only HEAD~1 HEAD | > files.txt
#to get the hash of the current commit
git rev-parse HEAD