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
#you can also do the git diff commands with the commit hash git diff --name-only 567a29a 23caaf595 | xargs tar -czf files.tar.gz
src: http://stackoverflow.com/questions/1552340/git-show-all-changed-files-between-two-commits