Re: git --help not actually showing the git(1) help page..
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 13, 2019, 22:44 UTC
- Message-ID
- <xmqqwoiu9dpb.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <a0afd3c4-93ff-31e6-a622-5751c6b5a549@iee.org>
Philip Oakley <philipoakley@iee.org> writes:
> On GfW I commonly use the `git <cmd> --help` when things go wrong, so > making the response to that give the right advice would be good.
There are three levels of details ;-) "git --help" is meant as a shorter and sweeter version of "git help git" that is more detailed than "git -h".
It is conceivable for an enterprising developer to write a set of documentation with medium level details and make "git add --help" give such a medium level doc, more detailed than "git add -h" but more concice than "git help add". Those who did "git <cmd> --help" did not bother doing so.