Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get list of all default git config options

Tags:

git

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 :( )

like image 620
Ochi Avatar asked Nov 02 '22 05:11

Ochi


1 Answers

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

like image 183
NikedLab Avatar answered Nov 15 '22 03:11

NikedLab