Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pages/common/git-annotate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# git annotate

> Show commit hash and last author on each line of a file.
> Note: Use `git blame`.
> This only difference between `git annotate` and `git blame` is that the former has a slightly different output format, and is used only for backwards-compatibility, and provide a more familiar command name for people coming from other SCM systems.
> More information: <https://git-scm.com/docs/git-annotate>.

- Print file with author name and commit hash on each line:

`git annotate {{file}}`

- Print file with author email and commit hash on each line:

`git annotate -e {{file}}`