mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-24 06:24:14 +02:00
git-blame: add an example to blame similar to github UI (#17648)
Update git-blame.md
This commit is contained in:
parent
282c4cf6d1
commit
79c18a9728
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
||||||
|
|
||||||
`git blame {{commit}}~ {{path/to/file}}`
|
`git blame {{commit}}~ {{path/to/file}}`
|
||||||
|
|
||||||
|
- Jump to the parent of a specific commit and track a specific text and 10 of its following lines:
|
||||||
|
|
||||||
|
`git blame -L '/{{text}}/',+10 {{a82812aa}}^ tldr.py`
|
||||||
|
|
||||||
- Print author name and commit hash information for a specific line range:
|
- Print author name and commit hash information for a specific line range:
|
||||||
|
|
||||||
`git blame -L {{start_line}},{{end_line}} {{path/to/file}}`
|
`git blame -L {{start_line}},{{end_line}} {{path/to/file}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue