git-blame: add commit examples (#9380)
This commit is contained in:
@@ -10,3 +10,11 @@
|
|||||||
- Print file with author email and commit hash on each line:
|
- Print file with author email and commit hash on each line:
|
||||||
|
|
||||||
`git blame -e {{file}}`
|
`git blame -e {{file}}`
|
||||||
|
|
||||||
|
- Print file with author name and commit hash on each line at a specific commit:
|
||||||
|
|
||||||
|
`git blame {{commit}} {{path/to/file}}`
|
||||||
|
|
||||||
|
- Print file with author name and commit hash on each line before a specific commit:
|
||||||
|
|
||||||
|
`git blame {{commit}}~ {{path/to/file}}`
|
||||||
|
Reference in New Issue
Block a user