# Fwd: Re: Git config not working correctly with included configurations

2 messages from 2016-04-12 to 2016-04-12. Participants: stefan.naewe@atlas-elektronik.com, Rudinei Goi Roecker.
Thread: https://gitlist.dev/t/42001

## stefan.naewe@atlas-elektronik.com, 2016-04-12 11:58

Subject: Fwd: Re: Git config not working correctly with included configurations
Message-ID: <570CE2DC.90602@atlas-elektronik.com>
URL: https://gitlist.dev/e/570CE2DC.90602%40atlas-elektronik.com
In-Reply-To: <570CE289.2000808@atlas-elektronik.com>

```
Sorry, I thought this list has 'reply to all' set by default...

Stefan

-------- Weitergeleitete Nachricht --------
Betreff: Re: Git config not working correctly with included configurations
Datum: Tue, 12 Apr 2016 13:56:57 +0200
Von: Näwe, Stefan <stefan.naewe@atlas-elektronik.com>
An: Rudinei Goi Roecker <rudineigr@itflex.com.br>

Am 12.04.2016 um 13:25 schrieb Rudinei Goi Roecker:
> I'm having a problem with included configurations in ~/.gitconfig, when
> using this command:
> 
> git config --global user.email
> 
> It doesn't return anything, in commits it works as intended. The
> configuration looks like this:
> 
> ~/.gitconfig
> [include]
>    path = .gitconfig.user

Maybe you want to use

     path = ~/.gitconfig.user

here.

> # ... more configurations
> 
> ~/.gitconfig.user
> [user]
>    name = My Full Name
>    email = myemail@example.com

HTH,
  Stefan
-- 
----------------------------------------------------------------
/dev/random says: CURSOR: What you become when your system crashes.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')" 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF


```

## Rudinei Goi Roecker, 2016-04-12 12:13

Subject: Re: Git config not working correctly with included configurations
Message-ID: <assp.09101f0ea6.570CE685.8060005@itflex.com.br>
URL: https://gitlist.dev/e/assp.09101f0ea6.570CE685.8060005%40itflex.com.br
In-Reply-To: <570CE289.2000808@atlas-elektronik.com>

```
I tried changing to ~/.gitconfig.user and 
/home/<user_name>/.gitconfig.user, still causes the same problem

On 12-04-2016 08:56, stefan.naewe@atlas-elektronik.com wrote:
> Am 12.04.2016 um 13:25 schrieb Rudinei Goi Roecker:
>> I'm having a problem with included configurations in ~/.gitconfig, when
>> using this command:
>>
>> git config --global user.email
>>
>> It doesn't return anything, in commits it works as intended. The
>> configuration looks like this:
>>
>> ~/.gitconfig
>> [include]
>>     path = .gitconfig.user
> Maybe you want to use
>
>       path = ~/.gitconfig.user
>
> here.
>
>> # ... more configurations
>>
>> ~/.gitconfig.user
>> [user]
>>     name = My Full Name
>>     email = myemail@example.com
> HTH,
>    Stefan

```
