{
    "content": [
        {
            "type": "text",
            "text": "# git-help(1) (man)\n\n**Summary:** git-help - Display help information about Git\n\n**Synopsis:** git help [-a|--all [--[no-]verbose]]\n[[-i|--info] [-m|--man] [-w|--web]] [COMMAND|GUIDE]\ngit help [-g|--guides]\ngit help [-c|--config]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -a | --all | — | Prints all the available commands on the standard output. This option overrides any given command or guide name. |\n| — | --verbose | — | When used with --all print description for all recognized commands. This is the default. |\n| -c | --config | — | List all available configuration variables. This is a short summary of the list in git- config(1). |\n| -g | --guides | — | Prints a list of the Git concept guides on the standard output. |\n| -i | --info | — | Display manual page for the command in the info format. The info program will be used for that purpose. |\n| -m | --man | — | Display manual page for the command in the man format. This option may be used to override a value set in the help.forma |\n| -w | --web | — | Display manual page for the command in the web (HTML) format. A web browser will be used for that purpose. The web brows |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (6 lines)\n- **DESCRIPTION** (23 lines)\n- **OPTIONS** (1 lines) — 7 subsections\n  - -a, --all (3 lines)\n  - --verbose (2 lines)\n  - -c, --config (3 lines)\n  - -g, --guides (2 lines)\n  - -i, --info (3 lines)\n  - -m, --man (6 lines)\n  - -w, --web (8 lines)\n- **CONFIGURATION VARIABLES** (1 lines) — 7 subsections\n  - help.format (10 lines)\n  - help.browser, web.browser and browser.<tool>.path (4 lines)\n  - man.viewer (31 lines)\n  - man.<tool>.path (5 lines)\n  - man.<tool>.cmd (5 lines)\n  - Note about konqueror (15 lines)\n  - Note about git config --global (10 lines)\n- **GIT** (5 lines)\n\n## Full Content\n\n### NAME\n\ngit-help - Display help information about Git\n\n### SYNOPSIS\n\ngit help [-a|--all [--[no-]verbose]]\n[[-i|--info] [-m|--man] [-w|--web]] [COMMAND|GUIDE]\ngit help [-g|--guides]\ngit help [-c|--config]\n\n### DESCRIPTION\n\nWith no options and no COMMAND or GUIDE given, the synopsis of the git command and a list of\nthe most commonly used Git commands are printed on the standard output.\n\nIf the option --all or -a is given, all available commands are printed on the standard\noutput.\n\nIf the option --guides or -g is given, a list of the Git concept guides is also printed on\nthe standard output.\n\nIf a command, or a guide, is given, a manual page for that command or guide is brought up.\nThe man program is used by default for this purpose, but this can be overridden by other\noptions or configuration variables.\n\nIf an alias is given, git shows the definition of the alias on standard output. To get the\nmanual page for the aliased command, use git COMMAND --help.\n\nNote that git --help ... is identical to git help ... because the former is internally\nconverted into the latter.\n\nTo display the git(1) man page, use git help git.\n\nThis page can be displayed with git help help or git help --help\n\n### OPTIONS\n\n#### -a, --all\n\nPrints all the available commands on the standard output. This option overrides any given\ncommand or guide name.\n\n#### --verbose\n\nWhen used with --all print description for all recognized commands. This is the default.\n\n#### -c, --config\n\nList all available configuration variables. This is a short summary of the list in git-\nconfig(1).\n\n#### -g, --guides\n\nPrints a list of the Git concept guides on the standard output.\n\n#### -i, --info\n\nDisplay manual page for the command in the info format. The info program will be used for\nthat purpose.\n\n#### -m, --man\n\nDisplay manual page for the command in the man format. This option may be used to\noverride a value set in the help.format configuration variable.\n\nBy default the man program will be used to display the manual page, but the man.viewer\nconfiguration variable may be used to choose other display programs (see below).\n\n#### -w, --web\n\nDisplay manual page for the command in the web (HTML) format. A web browser will be used\nfor that purpose.\n\nThe web browser can be specified using the configuration variable help.browser, or\nweb.browser if the former is not set. If none of these config variables is set, the git\nweb--browse helper script (called by git help) will pick a suitable default. See git-\nweb--browse(1) for more information about this.\n\n### CONFIGURATION VARIABLES\n\n#### help.format\n\nIf no command-line option is passed, the help.format configuration variable will be checked.\nThe following values are supported for this variable; they make git help behave as their\ncorresponding command- line option:\n\n•   \"man\" corresponds to -m|--man,\n\n•   \"info\" corresponds to -i|--info,\n\n•   \"web\" or \"html\" correspond to -w|--web.\n\n#### help.browser, web.browser and browser.<tool>.path\n\nThe help.browser, web.browser and browser.<tool>.path will also be checked if the web format\nis chosen (either by command-line option or configuration variable). See -w|--web in the\nOPTIONS section above and git-web--browse(1).\n\n#### man.viewer\n\nThe man.viewer configuration variable will be checked if the man format is chosen. The\nfollowing values are currently supported:\n\n•   \"man\": use the man program as usual,\n\n•   \"woman\": use emacsclient to launch the \"woman\" mode in emacs (this only works starting\nwith emacsclient versions 22),\n\n•   \"konqueror\": use kfmclient to open the man page in a new konqueror tab (see Note about\nkonqueror below).\n\nValues for other tools can be used if there is a corresponding man.<tool>.cmd configuration\nentry (see below).\n\nMultiple values may be given to the man.viewer configuration variable. Their corresponding\nprograms will be tried in the order listed in the configuration file.\n\nFor example, this configuration:\n\n[man]\nviewer = konqueror\nviewer = woman\n\n\nwill try to use konqueror first. But this may fail (for example, if DISPLAY is not set) and\nin that case emacs' woman mode will be tried.\n\nIf everything fails, or if no viewer is configured, the viewer specified in the\nGITMANVIEWER environment variable will be tried. If that fails too, the man program will be\ntried anyway.\n\n#### man.<tool>.path\n\nYou can explicitly provide a full path to your preferred man viewer by setting the\nconfiguration variable man.<tool>.path. For example, you can configure the absolute path to\nkonqueror by setting man.konqueror.path. Otherwise, git help assumes the tool is available in\nPATH.\n\n#### man.<tool>.cmd\n\nWhen the man viewer, specified by the man.viewer configuration variables, is not among the\nsupported ones, then the corresponding man.<tool>.cmd configuration variable will be looked\nup. If this variable exists then the specified tool will be treated as a custom command and a\nshell eval will be used to run the command with the man page passed as arguments.\n\n#### Note about konqueror\n\nWhen konqueror is specified in the man.viewer configuration variable, we launch kfmclient to\ntry to open the man page on an already opened konqueror in a new tab if possible.\n\nFor consistency, we also try such a trick if man.konqueror.path is set to something like\nAPATHTO/konqueror. That means we will try to launch APATHTO/kfmclient instead.\n\nIf you really want to use konqueror, then you can use something like the following:\n\n[man]\nviewer = konq\n\n[man \"konq\"]\ncmd = APATHTO/konqueror\n\n#### Note about git config --global\n\nNote that all these configuration variables should probably be set using the --global flag,\nfor example like this:\n\n$ git config --global help.format web\n$ git config --global web.browser firefox\n\n\nas they are probably more user specific than repository specific. See git-config(1) for more\ninformation about this.\n\n### GIT\n\nPart of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                                  GIT-HELP(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "git-help",
        "section": "1",
        "mode": "man",
        "summary": "git-help - Display help information about Git",
        "synopsis": "git help [-a|--all [--[no-]verbose]]\n[[-i|--info] [-m|--man] [-w|--web]] [COMMAND|GUIDE]\ngit help [-g|--guides]\ngit help [-c|--config]",
        "flags": [
            {
                "flag": "-a",
                "long": "--all",
                "arg": null,
                "description": "Prints all the available commands on the standard output. This option overrides any given command or guide name."
            },
            {
                "flag": "",
                "long": "--verbose",
                "arg": null,
                "description": "When used with --all print description for all recognized commands. This is the default."
            },
            {
                "flag": "-c",
                "long": "--config",
                "arg": null,
                "description": "List all available configuration variables. This is a short summary of the list in git- config(1)."
            },
            {
                "flag": "-g",
                "long": "--guides",
                "arg": null,
                "description": "Prints a list of the Git concept guides on the standard output."
            },
            {
                "flag": "-i",
                "long": "--info",
                "arg": null,
                "description": "Display manual page for the command in the info format. The info program will be used for that purpose."
            },
            {
                "flag": "-m",
                "long": "--man",
                "arg": null,
                "description": "Display manual page for the command in the man format. This option may be used to override a value set in the help.format configuration variable. By default the man program will be used to display the manual page, but the man.viewer configuration variable may be used to choose other display programs (see below)."
            },
            {
                "flag": "-w",
                "long": "--web",
                "arg": null,
                "description": "Display manual page for the command in the web (HTML) format. A web browser will be used for that purpose. The web browser can be specified using the configuration variable help.browser, or web.browser if the former is not set. If none of these config variables is set, the git web--browse helper script (called by git help) will pick a suitable default. See git- web--browse(1) for more information about this."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-a, --all",
                        "lines": 3,
                        "flag": "-a",
                        "long": "--all"
                    },
                    {
                        "name": "--verbose",
                        "lines": 2,
                        "long": "--verbose"
                    },
                    {
                        "name": "-c, --config",
                        "lines": 3,
                        "flag": "-c",
                        "long": "--config"
                    },
                    {
                        "name": "-g, --guides",
                        "lines": 2,
                        "flag": "-g",
                        "long": "--guides"
                    },
                    {
                        "name": "-i, --info",
                        "lines": 3,
                        "flag": "-i",
                        "long": "--info"
                    },
                    {
                        "name": "-m, --man",
                        "lines": 6,
                        "flag": "-m",
                        "long": "--man"
                    },
                    {
                        "name": "-w, --web",
                        "lines": 8,
                        "flag": "-w",
                        "long": "--web"
                    }
                ]
            },
            {
                "name": "CONFIGURATION VARIABLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "help.format",
                        "lines": 10
                    },
                    {
                        "name": "help.browser, web.browser and browser.<tool>.path",
                        "lines": 4
                    },
                    {
                        "name": "man.viewer",
                        "lines": 31
                    },
                    {
                        "name": "man.<tool>.path",
                        "lines": 5
                    },
                    {
                        "name": "man.<tool>.cmd",
                        "lines": 5
                    },
                    {
                        "name": "Note about konqueror",
                        "lines": 15
                    },
                    {
                        "name": "Note about git config --global",
                        "lines": 10
                    }
                ]
            },
            {
                "name": "GIT",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}