Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Querying Git for the path to the system config file

From: Sebastian Schuberth <hidden>
Date: 2016-06-15 23:04:51

Hi,

I was in need to find out the path to the system-wide config file that
Git is using. I need to do this in a platform-independent way (Linux,
Mac OS X, Windows). What I came up with is

$ GIT_EDITOR=echo git config --system --edit

to trick Git into printing the path instead of opening the file in an editor.

Just wondering, is there a less hacky way to do that?

-- 
Sebastian Schuberth
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help