mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 14:55:24 +02:00
git-blame: add examples (#15558)
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
parent
a06210d24b
commit
e9c281ada0
1 changed files with 8 additions and 0 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue