In Git, how can I simply find all of the files that were added to a repository by a particular user?

3 Answers 3

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .