Reputation: 1478
I need a way to get a list of all default options that could be inserted into .gitconfig
file
I don't mean going through all man pages :) more generic solution that could work for future versions would be most appreciated+
update: the closest I get to actual results is grep -r 'strcmp(var, ' ~/git-cource-code
update2: after 4 years (since version 2.19) git has the possibility of listing all possible config options (sadly without defaults :( )
Upvotes: 5
Views: 1855
Reputation: 11943
It doesn't give you the default values, but you can list all the possibilities:
git help --config
To see valid values (super helpful for enums like blame.coloring
for example)
man git-config
Has most of them. You can search for the one you want in less, or even just grep the output:
grep -A 10 -P blame.coloring <(man git-config)
Upvotes: 0
Reputation: 903
try git config --list
for local repository or git config --global --list
for global settings and git config --system --list
for system wide settings
Also helpful info about GIT options http://nikedlab.com/tutorial/git-setup.html
Upvotes: 4