Git Tips 2: Getting a list of all files added and removed
Posted 12 May 2010
When I send an incremental patch or release to a customer I usually include a list of the files that were added and removed. That makes it a lot easier for the people on the other end to submit the changes into source control.
The following command will list all the files that were added, moved or removed between two commits into a text file.
git diff -–summary commit1 commit2 > changes.txt
Commit1 and commit2 can be anything like a branch name, a commit id or a tag.