Skip to content
B. van Berkum edited this page Feb 19, 2019 · 1 revision

Show contributions for current file version (e.g. author-email and ISO datetime of commit):

git blame "$1" | cut -d' ' -f 1 | sort -u | while read sha1
do
  git show -s --format="%aE %cI" $sha1
done

Show all unique contributors for file:

git log --reverse -1 --format='%aE' [--follow] <File> | sort -u

Show original commiter for page/file:

git log -n1 --follow --format='%aE' <File>
Clone this wiki locally