2.4 Accessing Git’s Built-in Help

Git has an extensive user manual that is available from the command line and online.[16] From the command line, you can type this:

 
​prompt> git help <command>

Just replace <command> with the command you want help on, and Git displays the user manual entry for that command.

The documentation is not installed by default if you build from source. Some package managers distribute it as a separate git-doc package.

If you’re building from source, you need to call the doc and install-doc targets when running make. Git requires AsciiDoc[17] in order to convert the documentation from plain text into the manual form.

Don’t worry if you have trouble installing the documentation; you can always access ...

Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.