git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Querying Git for the path to the system config file
@ 2015-05-20 20:23 Sebastian Schuberth
  2015-05-20 21:01 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Schuberth @ 2015-05-20 20:23 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-20 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 20:23 Querying Git for the path to the system config file Sebastian Schuberth
2015-05-20 21:01 ` Jeff King
2015-05-20 21:22   ` Sebastian Schuberth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).