Skip to content
Edwin Kofler edited this page Jun 2, 2023 · 2 revisions

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>