diff --git a/pages/common/git-blame.md b/pages/common/git-blame.md index b55335af2a..915e028d4a 100644 --- a/pages/common/git-blame.md +++ b/pages/common/git-blame.md @@ -18,3 +18,11 @@ - Print file with author name and commit hash on each line before a specific commit: `git blame {{commit}}~ {{path/to/file}}` + +- Print author name and commit hash information for a specific line range: + +`git blame -L {{start_line}},{{end_line}} {{path/to/file}}` + +- Ignore whitespaces and line moves: + +`git blame -w -C -C -C {{path/to/file}}`