← 返回命令列表

Linux command

git-help 命令

文本

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

常用示例

Get help for command

git help [commit]

Open in web browser

git help --web [rebase]

Show all commands

git help --all

Show guides

git help --guides

Info format

git help -i [log]

说明

git help displays documentation for Git commands and conceptual guides. It opens manual pages by default, with options for web browser or info format display. The command provides access to both command documentation and conceptual guides covering topics like workflows, attributes, and revision specifications. Git includes extensive built-in documentation accessible through this interface.

参数

--all, -a
List all commands.
--guides, -g
List available guides.
--web, -w
Open in browser.
--man, -m
Use man format (default).
--info, -i
Use info format.
--help
Display help information.

FAQ

What is the git-help command used for?

git help displays documentation for Git commands and conceptual guides. It opens manual pages by default, with options for web browser or info format display. The command provides access to both command documentation and conceptual guides covering topics like workflows, attributes, and revision specifications. Git includes extensive built-in documentation accessible through this interface.

How do I run a basic git-help example?

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

What does --all, -a do in git-help?

List all commands.