红穆笔记

git help

顯示 Git 的幫助信息

100% 瀏覽器本地處理 0 數據上傳

常用示例

顯示指定 Git 子命令的幫助信息

git help {{subcommand}}

在網絡瀏覽器中顯示指定 Git 子命令的幫助信息

git help {{[-w|--web]}} {{subcommand}}

列出所有可用的 Git 子命令

git help {{[-a|--all]}}

列出可用的指南

git help {{[-g|--guides]}}

列出所有配置變量的名稱

git help {{[-c|--config]}}

提示:花括號{{…}}是需要替換的參數(路徑、文件名等);命令只在本機終端執行,本站不保存任何輸入。

英文原文對照

展開英文說明與示例(來源 tldr-pages)

Display help information about Git. More information

Display help about a specific Git subcommand

git help {{subcommand}}

Display help about a specific Git subcommand in a web browser

git help {{[-w|--web]}} {{subcommand}}

Display a list of all available Git subcommands

git help {{[-a|--all]}}

List the available guides

git help {{[-g|--guides]}}

List all possible configuration variables

git help {{[-c|--config]}}

命令信息

命令名git help
用途顯示 Git 的幫助信息
適用平臺通用
示例數量5 條
官方文檔https://git-scm.com/docs/git-help
數據來源tldr-pages(CC-BY-4.0)· 社區中文翻譯

常見問題

git help 命令是做什麼的?

顯示 Git 的幫助信息

git help 怎麼用?

頁面按場景列出了5 條常用示例:每條示例先說明用途,再給出可直接複製的完整命令(花括號裏是需要替換的參數)。

git help 最常用的操作是什麼?

顯示指定 Git 子命令的幫助信息:git help {{subcommand}}

命令裏的花括號是什麼意思?

花括號{{…}}表示需要替換成你自己的值,例如路徑、文件名;同名參數方括號(如 [-C|--directory])表示可選寫法。