git-blame
Show what commit and author last modified each line of a file. tldr-pages
On several platforms
Several platforms
Print a file with authorship info (author name and commit hash)
git blame path/to/fileIdentifyPrint the author's email instead of their name
git blame --show-email path/to/fileIdentifyPrint a file with authorship info as of a specific commit
git blame commit path/to/fileIdentifyPrint a file with authorship info before a specific commit
git blame commit~ path/to/fileIdentifyPrint a file with authorship info starting at a given line
git blame -L 123 path/to/fileIdentifyAnnotate a specific line range of a file
git blame -L start_line,end_line path/to/fileIdentifyAnnotate 10 lines of a file starting at the first line matching a given text
git blame -L '/text/',+10 path/to/fileIdentifyAnnotate a file ignoring whitespaces and line moves
git blame -w -C -C -C path/to/fileIdentify