1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 14:35:23 +02:00

git-blame: add examples (#15558)

Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
Managor 2025-01-20 19:46:28 +02:00 committed by GitHub
parent a06210d24b
commit e9c281ada0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,3 +18,11 @@
- Print file with author name and commit hash on each line before a specific commit:
`git blame {{commit}}~ {{path/to/file}}`
- Print author name and commit hash information for a specific line range:
`git blame -L {{start_line}},{{end_line}} {{path/to/file}}`
- Ignore whitespaces and line moves:
`git blame -w -C -C -C {{path/to/file}}`