What do the []
, <>
, -
and --
mean in the help docs?
When I use git, I can use git help
to show the usage of a command, but I am not quite sure I understand the symbols:
$ git help
usage: 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>]
EDIT
Is there any difference between -
and --
?
-p
with a single dash and--paginate
with a double dash. – Bounce