git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: --help for git commands

From
Shaoxuan Yuan <shaoxuan.yuan02@gmail.com>
Date
Apr 25, 2022, 06:22 UTC
Message-ID
<CAJyCBORnAsJjC6+JmDX_nMMnAEZbLbhVNK9QKB7cb88KGUsARQ@mail.gmail.com>
In-Reply-To
<CAHZPcmD3xmsuM5XQzczqKQEcVXXXc=c9cH9cpqDNPTpBrwd2iA@mail.gmail.com>
On Sun, Apr 24, 2022 at 2:26 PM Dorian Marié <dorian@dorianmarie.fr> wrote:
Show 7 quoted lines
>
> Hi,
>
> I think it would be nice to have a simple help like other programs do
> when doing `git [subcommand] --help` or `git [subcommand] -h`.
>
> It would be a short version of the manual.
I think we do have a "simple help like other programs do".

You will get the git manual page for a command, for example, git-add, with one of the followings:

`git add --help` `git help add` `man git-add`

Or, you can get a "short version of the manual", i.e. usage string, using this:
`git add -h`
-- 
Thanks & Regards,
Shaoxuan
Previous: Dorian MariéNext: Philip Oakley
Message 2 of 3 in “--help for git commands”
  1. Dorian MariéApr 24, 2022
  2. Shaoxuan YuanApr 25, 2022
  3. Philip OakleyApr 25, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.