Skip to content

Commit 9121047

Browse files
Villemoesgitster
authored andcommitted
git-help.txt: document "git help cmd" vs "git cmd --help" for aliases
This documents the existing behaviour of "git help cmd" when cmd is an alias, as well as providing a hint to use the "git cmd --help" form to be taken directly to the man page for the aliased command. Signed-off-by: Rasmus Villemoes <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a9a60b9 commit 9121047

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/git-help.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ guide is brought up. The 'man' program is used by default for this
2929
purpose, but this can be overridden by other options or configuration
3030
variables.
3131

32+
If an alias is given, git shows the definition of the alias on
33+
standard output. To get the manual page for the aliased command, use
34+
`git COMMAND --help`.
35+
3236
Note that `git --help ...` is identical to `git help ...` because the
3337
former is internally converted into the latter.
3438

0 commit comments

Comments
 (0)