From: Jim Garrison <jim@garrison.cc>
To: git@vger.kernel.org
Subject: git config --global not picking up includes
Date: Mon, 19 Jan 2015 11:37:10 -0800 [thread overview]
Message-ID: <54BD5CE6.2060309@garrison.cc> (raw)
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.
next reply other threads:[~2015-01-19 19:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 19:37 Jim Garrison [this message]
2015-01-19 19:58 ` [PATCH] git-config: better document default behavior for `--include` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54BD5CE6.2060309@garrison.cc \
--to=jim@garrison.cc \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).