git annotate
all
Show commit hash and last author on each line of a file. See `git blame`, which is preferred over `git annotate`. `git annotate` is provided for those familiar with other version control systems.
More info →Options (1)
-e, --show-emailbooleanPrint a file with the author email and commit hash prepended to each line
Example:
git annotate {{[-e|--show-email]}} {{path/to/file}}Examples (3)
Print a file with the author name and commit hash prepended to each line
git annotate path/to/filePrint a file with the author email and commit hash prepended to each line
git annotate [-e|--show-email] path/to/filePrint only rows that match a `regex`
git annotate -L :regexp path/to/filemade by @shridhargupta | data from tldr-pages