Skip to content

Commit 79c18a9

Browse files
authored
git-blame: add an example to blame similar to github UI (#17648)
Update git-blame.md
1 parent 282c4cf commit 79c18a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/common/git-blame.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
`git blame {{commit}}~ {{path/to/file}}`
2121

22+
- Jump to the parent of a specific commit and track a specific text and 10 of its following lines:
23+
24+
`git blame -L '/{{text}}/',+10 {{a82812aa}}^ tldr.py`
25+
2226
- Print author name and commit hash information for a specific line range:
2327

2428
`git blame -L {{start_line}},{{end_line}} {{path/to/file}}`

0 commit comments

Comments
 (0)