Silvamerica

home

Find Who Added a File With Git

08 May 2014

I don’t know why this was so hard to find. I searched extensively, tried to paste multiple process substitions from git and ls, and who knows what else. This command will show you, in reverse chronological order (by commit), who added the file or files and when:

git log --name-only --diff-filter=A --date=short \
--pretty=format:"%an <%ae> on %ad in %h" -- path/to/files/*
comments powered by Disqus