Re: --help for git commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 24, 2022 at 2:26 PM Dorian Marié <dorian@xxxxxxxxxxxxxx> 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`

-- 
Thanks & Regards,
Shaoxuan




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux