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.