Reading First things first: Git manual
Last updated: January 4, 2023
Man pages
Man (manual) pages hold the documentation on *nix systems.
You can access the man page for a git command with either of:
git <command> --help
git help <command>
man git-<command>
Example:
git commit --help
git help commit
man git-commit
Man pages open in a pager, usually less .
So you navigate them with the usual less bindings (e.g. Space to scroll down and q to quit).
Command options
To get a list of the options for a command, run:
git <command> -h
Example:
git commit -h