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

90
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