Changed files in specific commit git diff-tree --no-commit-id --name-only -r f237 Tar changes in last 3 commits tar zcvf changed.tar.gz `git diff --name-only HEAD~3`