In Git, how can I simply find all of the files that were added to a repository by a particular user?
3 Answers
git whatchanged --author="author regexp" --diff-filter=A --no-commit-id --name-only
Better methods are likely to be available.
Try to use below command:
git whatchanged --diff-filter=A --author=AUTHOR --pretty=format:%an | awk '{print $6}'
According to the current documentation (v2.41.0), new users are encouraged to use git-log instead of git-whatchanged.
Here's the modified version of the originally accepted answer from 12 years ago:
git log --author=AUTHOR --format="" --diff-filter=A --name-only --no-commit-id