← 返回命令列表

Linux command

git-authors 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all authors

git authors

List with email

git authors --list

Show author stats

git authors --stats

Generate AUTHORS file

git authors > AUTHORS

说明

git authors lists all contributors to a git repository. It extracts unique author information from the commit history, useful for generating contributor lists and AUTHORS files. The command is part of git-extras, a collection of useful git utilities. It can output in various formats suitable for documentation or acknowledgment files. The output can be redirected to create an AUTHORS file, which is a common convention in open source projects for crediting all contributors. The --no-email option produces a cleaner list suitable for public display.

参数

--list, -l
List format with emails.
--stats, -s
Show contribution statistics.
--no-email
Omit email addresses.
--help
Display help information.

FAQ

What is the git-authors command used for?

git authors lists all contributors to a git repository. It extracts unique author information from the commit history, useful for generating contributor lists and AUTHORS files. The command is part of git-extras, a collection of useful git utilities. It can output in various formats suitable for documentation or acknowledgment files. The output can be redirected to create an AUTHORS file, which is a common convention in open source projects for crediting all contributors. The --no-email option produces a cleaner list suitable for public display.

How do I run a basic git-authors example?

Run `git authors` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --list, -l do in git-authors?

List format with emails.