1
0
Fork 0
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:
Managor 2025-08-16 21:36:31 +03:00 committed by GitHub
parent 282c4cf6d1
commit 79c18a9728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`