How to export only modified and added files with folder structure in Git

4
git diff-tree -r --no-commit-id --name-only commit1 commit2 | xargs tar -czvf patch.tar.gz

 

Source https://stackoverflow.com/questions/4541300/export-only-modified-and-added-files-with-folder-structure-in-git
Comments