Find out who added a particular file and when by
git log --diff-filter=A -- a/file`
With terse sort friendly format --pretty="format:%ad %h %an" --date=short
it is suitable for timelinig addition of several files
for f in files/*.js; do echo `git ... $f` $f; done | sort
Very nice. I added this as an alias 'who' in my
.gitconfig
.Works well together with
find
, e.g.find . -name "*.js" -print -exec git who {} \;