Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I access Git User’s Manual[1] using the terminal?

Tags:

git

manpage

In the man page of git, there is a line which says:

See gittutorial(7) to get started, then see giteveryday(7) for a useful minimum set of commands.
The Git User’s Manual[1] has a more in-depth introduction.

How do I see the "The Git User's Manual[1]" from the terminal it self, instead of looking it up on the internet.

like image 281
Hari Om Avatar asked Mar 05 '23 03:03

Hari Om


2 Answers

The [1] part from Git User’s Manual[1] says it is a note.

Read until the end of the manual page (press the space bar to jump one page below) to go to the NOTES sections.

The first note is:

NOTES
    1. Git User’s Manual
       git-htmldocs/user-manual.html

git-htmldocs/user-manual.html is not a valid URL and it doesn't mean anything to me.

But the first section of man git (where you extracted the fragment you posted in the question) also says:

A formatted and hyperlinked copy of the latest Git documentation can be viewed at https://git.github.io/htmldocs/git.html.

At https://git.github.io/htmldocs/git.html there is the same documentation as HTML and the Git User's Manual link in this documentation points to: https://git.github.io/htmldocs/user-manual.html


You can also read the Git documentation on its website: https://git-scm.com/docs

like image 187
axiac Avatar answered Mar 22 '23 23:03

axiac


For example, for the command, git clone <repo>, you can either use:

$ man git-clone

or:

$ git help clone

like image 38
fabfas Avatar answered Mar 22 '23 23:03

fabfas