1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/git-blame.md
Managor db25f60eb1
git-*: convert options to longform and minor fixes (#13441)
Co-authored-by: spageektti <git@spageektti.cc>
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
2024-08-31 13:06:48 +02:00

584 B

git blame

Show commit hash and last author on each line of a file. More information: https://git-scm.com/docs/git-blame.

  • Print file with author name and commit hash on each line:

git blame {{path/to/file}}

  • Print file with author email and commit hash on each line:

git blame {{--show-email|-e}} {{path/to/file}}

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

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

  • Print file with author name and commit hash on each line before a specific commit:

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