git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git config --global not picking up includes
@ 2015-01-19 19:37 Jim Garrison
  2015-01-19 19:58 ` [PATCH] git-config: better document default behavior for `--include` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Garrison @ 2015-01-19 19:37 UTC (permalink / raw)
  To: git

I have found that `git config --global` does not pick up any include 
directives in the git config file.

For instance, my ~/.gitconfig contains the following:

     [include]
         path = /home/garrison/gitconfig-include

And ~/gitconfig-include in turn contains

     [user]
         name = Jim Garrison

However, when I pass the --global flag to git config, my name is not 
picked up:

     $ git config --global user.name
     $ git config user.name
     Jim Garrison

If I instead replace .gitconfig with the contents of gitconfig-include 
(and in turn remove the include step), everything works as expected.

     $ git config --global user.name
     Jim Garrison
     $ git config user.name
     Jim Garrison

I am using the latest git master, built on Debian jessie.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-19 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-19 19:37 git config --global not picking up includes Jim Garrison
2015-01-19 19:58 ` [PATCH] git-config: better document default behavior for `--include` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).