Print file with author name and commit hash on each line at a specific commit

git blame

  • Show commit hash and last author on each line of a file.
    More information: <https://git-scm.com/docs/git-blame>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git blame {{commit}} {{path/to/file}}

click the source code to copy install git blame on any operating system with command-not-found.com