Loading lessons...
Git Help
Git Help
Git has built in help for every command. When you forget the details, ask Git itself.
Get help for a command
git help commit
This opens the full manual page for git commit.
Shorter help
git commit -h
This prints a short summary of options right in the terminal, without opening a manual page.
Same thing, different spellings
All three of these show the full help:
git help add
git add --help
git -h add
List all commands
git help -a
This lists every Git command you have installed.
Find a command by topic
git help -g
This lists guides and tutorials like "gitglossary" and "githooks".
TL;DR
git help commandopens the manual page.git command -hprints a quick option summary.git help -alists all commands.- Git's help is always installed, even offline.