Skip to contentSkip to conversation

git config --list --local?

DISCUSSION Joshua Jensen 3 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I would like git config to give me just the settings for the local
repository (.git/config). I am likely misreading the documentation, but it appears there isn't an option for that.

Would someone mind setting me straight?

Josh

#1 lore raw
Quoted 5 lines · Joshua Jensen

I would like git config to give me just the settings for the local
repository (.git/config). I am likely misreading the documentation, but it appears there isn't an option for that.

Would someone mind setting me straight?

AFAIK you can only fake it with

  $ git config --file .git/config --list

(or something like that).

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#2 lore raw

----- Original Message -----
From: Jakub Narebski
Date: 8/3/2010 10:25 AM

Quoted 1 line

git config --file .git/config --list

This looks like it will work for me.

I've never looked at the config section of the Git code. I'll have to see what it would take to add a --local command line option to do the same thing as above but in a more convenient fashion.

Josh

#4 lore raw

----- Original Message -----
From: Sverre Rabbelier
Date: 8/3/2010 7:37 PM

Quoted 7 lines · Joshua Jensen
Quoted 3 lines

I've never looked at the config section of the Git code. I'll have to see what it would take to add a --local command line option to do the same thing as above but in a more convenient fashion.

http://article.gmane.org/gmane.comp.version-control.git/118673

I can resend if there's interest.

Whee!

My opinion doesn't count for anything, but I have interest. :)

Josh