threads / discuss / 42001

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

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

## tl;dr

2 messages between Apr 12, 2016 and Apr 12, 2016.

replies: 1people: 2as markdown or json

stefan.naewe@atlas-elektronik.com· Apr 12, 2016, 11:58 UTC · lore
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:
Show 11 quoted lines
> 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.
Show 6 quoted lines
> # ... 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· Apr 12, 2016, 12:13 UTC · lore

Re: Git config not working correctly with included configurations

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:
Show 26 quoted lines
> 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

← back to recent threads