* Git config not working correctly with included configurations
@ 2016-04-12 11:25 Rudinei Goi Roecker
2016-04-12 13:02 ` John Keeping
2016-04-12 15:50 ` Jeff King
0 siblings, 2 replies; 6+ messages in thread
From: Rudinei Goi Roecker @ 2016-04-12 11:25 UTC (permalink / raw)
To: git
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
# ... more configurations
~/.gitconfig.user
[user]
name = My Full Name
email = myemail@example.com
I'm using Fedora 23, git version 2.5.5
^ permalink raw reply [flat|nested] 6+ messages in thread
* Fwd: Re: Git config not working correctly with included configurations
[not found] ` <570CE289.2000808@atlas-elektronik.com>
@ 2016-04-12 11:58 ` stefan.naewe
2016-04-12 12:13 ` Rudinei Goi Roecker
1 sibling, 0 replies; 6+ messages in thread
From: stefan.naewe @ 2016-04-12 11:58 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Git config not working correctly with included configurations
[not found] ` <570CE289.2000808@atlas-elektronik.com>
2016-04-12 11:58 ` Fwd: Re: Git config not working correctly with included configurations stefan.naewe
@ 2016-04-12 12:13 ` Rudinei Goi Roecker
1 sibling, 0 replies; 6+ messages in thread
From: Rudinei Goi Roecker @ 2016-04-12 12:13 UTC (permalink / raw)
To: stefan.naewe, git
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Git config not working correctly with included configurations
2016-04-12 11:25 Rudinei Goi Roecker
@ 2016-04-12 13:02 ` John Keeping
2016-04-12 15:50 ` Jeff King
1 sibling, 0 replies; 6+ messages in thread
From: John Keeping @ 2016-04-12 13:02 UTC (permalink / raw)
To: Rudinei Goi Roecker; +Cc: git
On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:
> 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:
I think you need:
git config --global --includes user.email
or simply:
git config user.email
See the documentation of the --includes and --no-includes options in
git-config(1).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Git config not working correctly with included configurations
2016-04-12 11:25 Rudinei Goi Roecker
2016-04-12 13:02 ` John Keeping
@ 2016-04-12 15:50 ` Jeff King
2016-04-12 16:03 ` Rudinei Goi Roecker
1 sibling, 1 reply; 6+ messages in thread
From: Jeff King @ 2016-04-12 15:50 UTC (permalink / raw)
To: Rudinei Goi Roecker; +Cc: git
On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:
> I'm having a problem with included configurations in ~/.gitconfig, when
> using this command:
>
> git config --global user.email
You need to turn on "--includes" explicitly. From "git help config" in
v2.8.0:
--[no-]includes
Respect include.* directives in config files when looking up
values. Defaults to off when a specific file is given (e.g., using
--file, --global, etc) and on when searching all config files.
> I'm using Fedora 23, git version 2.5.5
The rule above has always been the case, but the documentation made it
more clear in v2.8.0.
-Peff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Git config not working correctly with included configurations
2016-04-12 15:50 ` Jeff King
@ 2016-04-12 16:03 ` Rudinei Goi Roecker
0 siblings, 0 replies; 6+ messages in thread
From: Rudinei Goi Roecker @ 2016-04-12 16:03 UTC (permalink / raw)
To: Jeff King, git
Thanks, I didn't knew about that option, as Jeff King said, the
documentation is way more explicit about how it works in 2.8.0
On 12-04-2016 12:50, Jeff King wrote:
> On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:
>
>> I'm having a problem with included configurations in ~/.gitconfig, when
>> using this command:
>>
>> git config --global user.email
> You need to turn on "--includes" explicitly. From "git help config" in
> v2.8.0:
>
> --[no-]includes
> Respect include.* directives in config files when looking up
> values. Defaults to off when a specific file is given (e.g., using
> --file, --global, etc) and on when searching all config files.
>
>> I'm using Fedora 23, git version 2.5.5
> The rule above has always been the case, but the documentation made it
> more clear in v2.8.0.
>
> -Peff
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-04-12 16:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <570CDB33.9020300@itflex.com.br>
[not found] ` <570CE289.2000808@atlas-elektronik.com>
2016-04-12 11:58 ` Fwd: Re: Git config not working correctly with included configurations stefan.naewe
2016-04-12 12:13 ` Rudinei Goi Roecker
2016-04-12 11:25 Rudinei Goi Roecker
2016-04-12 13:02 ` John Keeping
2016-04-12 15:50 ` Jeff King
2016-04-12 16:03 ` Rudinei Goi Roecker
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.