diff --git a/pages/common/git-blame.md b/pages/common/git-blame.md index dede3cf591..5c9e54d251 100644 --- a/pages/common/git-blame.md +++ b/pages/common/git-blame.md @@ -10,3 +10,11 @@ - Print file with author email and commit hash on each line: `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}}`