CmdID

CmdID / Commands

git-blame

Show what commit and author last modified each line of a file. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Print a file with authorship info (author name and commit hash)

git blame path/to/fileIdentify

Print the author's email instead of their name

git blame --show-email path/to/fileIdentify

Print a file with authorship info as of a specific commit

git blame commit path/to/fileIdentify

Print a file with authorship info before a specific commit

git blame commit~ path/to/fileIdentify

Print a file with authorship info starting at a given line

git blame -L 123 path/to/fileIdentify

Annotate a specific line range of a file

git blame -L start_line,end_line path/to/fileIdentify

Annotate 10 lines of a file starting at the first line matching a given text

git blame -L '/text/',+10 path/to/fileIdentify

Annotate a file ignoring whitespaces and line moves

git blame -w -C -C -C path/to/fileIdentify