All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Oakley <philipoakley@iee.email>
To: "Shaoxuan Yuan" <shaoxuan.yuan02@gmail.com>,
	"Dorian Marié" <dorian@dorianmarie.fr>
Cc: git@vger.kernel.org
Subject: Re: --help for git commands
Date: Mon, 25 Apr 2022 14:55:51 +0100	[thread overview]
Message-ID: <f373dfbc-51b6-2985-68aa-412599df2b43@iee.email> (raw)
In-Reply-To: <CAJyCBORnAsJjC6+JmDX_nMMnAEZbLbhVNK9QKB7cb88KGUsARQ@mail.gmail.com>


Hi Dorian
On 25/04/2022 07:22, Shaoxuan Yuan wrote:
> On Sun, Apr 24, 2022 at 2:26 PM Dorian Marié <dorian@dorianmarie.fr> wrote:
>> 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`
>
The `-h` option is listed in the command line interpreter (cli) guide
`git help cli`
and the help command is listed via the `git help help`, which also notes
the `git help git` method for getting git's own help/man page.

All part of the many 'obvious in retrospect' parts of Git ;-)

Philip

      reply	other threads:[~2022-04-25 13:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-24  6:18 --help for git commands Dorian Marié
2022-04-25  6:22 ` Shaoxuan Yuan
2022-04-25 13:55   ` Philip Oakley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f373dfbc-51b6-2985-68aa-412599df2b43@iee.email \
    --to=philipoakley@iee.email \
    --cc=dorian@dorianmarie.fr \
    --cc=git@vger.kernel.org \
    --cc=shaoxuan.yuan02@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.