tldr/pages/common/git-blame.md

13 lines
292 B
Markdown
Raw Normal View History

2015-12-17 22:08:37 +00:00
# git blame
> Show commit hash and last author on each line of a file.
2019-01-30 11:19:23 +00:00
> Homepage: <https://git-scm.com/docs/git-blame>.
2015-12-17 22:08:37 +00:00
- Print file with author name and commit hash on each line:
2015-12-17 22:08:37 +00:00
`git blame {{file}}`
- Print file with author email and commit hash on each line:
2015-12-17 22:08:37 +00:00
`git blame -e {{file}}`