Skip to content

Commit 3861cd5

Browse files
Jonathan Niedergitster
authored andcommitted
Documentation: complicate example of "man git-command"
The manual page for the command invoked as "git clone" is named git-clone(1), and similarly for the rest of the git commands. Make sure our first example of this in tutorials makes it clear that it is the first two words of a command line that make up the command's name (that is: for example, the effect of "git svn dcommit" is described in git-svn(1)). Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3f2d1ee commit 3861cd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/gittutorial.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ for example, to test the latest version, you may prefer to start with
2020
the first two chapters of link:user-manual.html[The Git User's Manual].
2121

2222
First, note that you can get documentation for a command such as "git
23-
diff" with:
23+
log --graph" with:
2424

2525
------------------------------------------------
26-
$ man git-diff
26+
$ man git-log
2727
------------------------------------------------
2828

2929
It is a good idea to introduce yourself to git with your name and

Documentation/user-manual.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ People needing to do actual development will also want to read
1818
Further chapters cover more specialized topics.
1919

2020
Comprehensive reference documentation is available through the man
21-
pages. For a command such as "git clone", just use
21+
pages. For a command such as "git clone <repo>", just use
2222

2323
------------------------------------------------
2424
$ man git-clone

0 commit comments

Comments
 (0)