Show commit hash and last author on each line of a file. See
git blame, which is preferred overgit annotate.git annotateis provided for those familiar with other version control systems. More information: https://git-scm.com/docs/git-annotate.
git annotate path/to/file
git annotate -e|--show-email path/to/file
git annotate -L :regexp path/to/file