Reputation: 4189
I wanted to get all the git config entries, so I glanced over the options and found --get-all
, but it gave:
C:\>git config --global --get-all
error: wrong number of arguments
usage: git config [<options>]
It doesn't seem to specify a number of arguments, it just says [<options>]
.
And I don't know what other options it would need.
Upvotes: 16
Views: 12826
Reputation: 363
Only use double quotes.
Example:
git config --global --add safe.directory "D:/WORK/Angular Projects/website/panelapp"
Upvotes: 6
Reputation: 4189
For viewing the entire config, the correct argument is --list
, not --get-all
(or you may also want --edit
).
The "number of arguments" is of arguments to the argument (or so to speak), subarguments; it's just a really vague error message.
Upvotes: 11
Reputation: 60573
You have set it
git config --global --get-all
but as you can see in the help section right below
Action --get get value: name [value-regex] --get-all get all values: key [value-regex]
So that means you are missing the key
argument and optionally the value-regex
argument.
You can read more about it in the docs.
Upvotes: 5