Как прочитать справочную страницу для git revert?

296
jww

Когда я делаю man git revert, я получаю man-страницу для git:

NAME git - the stupid content tracker  SYNOPSIS git [--version] [--help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>]  DESCRIPTION Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. ... 

revertэто <command>перечисленное выше. Когда я пытаюсь просто man revert, я получаю:

$ man revert No manual entry for revert 

Как я могу прочитать справочную страницу для git revert?

1

2 ответа на вопрос

2
bertieb

Git has its own help system, invoked via git help <command>, as per the usage notes:

'git help -a' and 'git help -g' lists available subcommands and some concept guides. See 'git help <command>' or 'git help <concept>' to read about a specific subcommand or concept. 

So, to get info on git revert usage

$ git help revert GIT-REVERT(1) Git Manual GIT-REVERT(1) NAME git-revert - Revert some existing commits 

etc. You may also be interested in the git scm documentation, which I found very helpful when getting to grips with git; and still refer to.

Ах, "git-revert" - это название справочной страницы ... jww 8 лет назад 0
0
Scott

That's funny; when I say man git revert, it displays git-revert(1).  But anyway, if you scroll down about 20% of the way into git(1), you'll see

Git Commands

                ⋮

followed by

git-revert(1)

    Revert an existing commit.

So that's how you learn to say man git-revert.

Похожие вопросы