# git config --list --local?

5 messages from 2010-08-03 to 2010-08-04. Participants: Joshua Jensen, Jakub Narebski, Sverre Rabbelier.
Thread: https://gitlist.dev/t/24619

## Joshua Jensen, 2010-08-03 16:07

Subject: git config --list --local?
Message-ID: <4C583EA5.5000406@workspacewhiz.com>
URL: https://gitlist.dev/e/4C583EA5.5000406%40workspacewhiz.com

```
  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

```

## Jakub Narebski, 2010-08-03 16:25

Subject: Re: git config --list --local?
Message-ID: <m38w4npssl.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m38w4npssl.fsf%40localhost.localdomain
In-Reply-To: <4C583EA5.5000406@workspacewhiz.com>

```
Joshua Jensen <jjensen@workspacewhiz.com> writes:

>   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).

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Joshua Jensen, 2010-08-04 01:09

Subject: Re: git config --list --local?
Message-ID: <4C58BDDD.6020600@workspacewhiz.com>
URL: https://gitlist.dev/e/4C58BDDD.6020600%40workspacewhiz.com
In-Reply-To: <m38w4npssl.fsf@localhost.localdomain>

```
  ----- Original Message -----
From: Jakub Narebski
Date: 8/3/2010 10:25 AM
> 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

```

## Sverre Rabbelier, 2010-08-04 01:37

Subject: Re: git config --list --local?
Message-ID: <AANLkTi=c7cfL+wH9uS0z1hR9csKbvf4vtV-k3J-2qRoP@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3Dc7cfL%2BwH9uS0z1hR9csKbvf4vtV-k3J-2qRoP%40mail.gmail.com
In-Reply-To: <4C58BDDD.6020600@workspacewhiz.com>

```
Heya,

On Tue, Aug 3, 2010 at 20:09, Joshua Jensen <jjensen@workspacewhiz.com> wrote:
> 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.

-- 
Cheers,

Sverre Rabbelier

```

## Joshua Jensen, 2010-08-04 01:43

Subject: Re: git config --list --local?
Message-ID: <4C58C5CE.2020405@workspacewhiz.com>
URL: https://gitlist.dev/e/4C58C5CE.2020405%40workspacewhiz.com
In-Reply-To: <AANLkTi=c7cfL+wH9uS0z1hR9csKbvf4vtV-k3J-2qRoP@mail.gmail.com>

```
  ----- Original Message -----
From: Sverre Rabbelier
Date: 8/3/2010 7:37 PM
> On Tue, Aug 3, 2010 at 20:09, Joshua Jensen<jjensen@workspacewhiz.com>  wrote:
>> 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

```
