mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 20:46:00 +02:00
git-annotate: add page (#5096)
This commit is contained in:
parent
d157c1f373
commit
7131e2f4a8
1 changed files with 14 additions and 0 deletions
14
pages/common/git-annotate.md
Normal file
14
pages/common/git-annotate.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# git annotate
|
||||
|
||||
> Show commit hash and last author on each line of a file.
|
||||
> See `git blame`, which is preferred over `git annotate`.
|
||||
> `git annotate` is provided for those familiar with other version control systems.
|
||||
> More information: <https://git-scm.com/docs/git-annotate>.
|
||||
|
||||
- Print a file with the author name and commit hash prepended to each line:
|
||||
|
||||
`git annotate {{path/to/file}}`
|
||||
|
||||
- Print a file with the author email and commit hash prepended to each line:
|
||||
|
||||
`git annotate -e {{path/to/file}}`
|
Loading…
Add table
Reference in a new issue