Git - Getting Help
Git - Getting Help
Getting Help
If you ever need help while using Git, there are three equivalent ways to get the comprehensive manual page (manpage)
help for any of the Git commands:
$ git help <verb>
$ git <verb> --help
$ man git-<verb>
For example, you can get the manpage help for the git config command by running this:
These commands are nice because you can access them anywhere, even offline. If the manpages and this book aren’t
enough and you need in-person help, you can try the #git, #github, or #gitlab channels on the Libera Chat IRC server,
which can be found at https://libera.chat/. These channels are regularly filled with hundreds of people who are all very
knowledgeable about Git and are often willing to help.
In addition, if you don’t need the full-blown manpage help, but just need a quick refresher on the available options for a
Git command, you can ask for the more concise “help” output with the -h option, as in:
$ git add -h
usage: git add [<options>] [--] <pathspec>...
prev | next
About this site
Patches, suggestions, and comments are welcome.
Git is a member of Software Freedom Conservancy
https://git-scm.com/book/en/v2/Getting-Started-Getting-Help 5/5