git config --global not picking up includes
- From
- Jim Garrison <jim@garrison.cc>
- Date
- Jan 19, 2015, 19:37 UTC
- Message-ID
- <54BD5CE6.2060309@garrison.cc>
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-includeAnd ~/gitconfig-include in turn contains
[user]
name = Jim GarrisonHowever, 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 GarrisonIf 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 GarrisonI am using the latest git master, built on Debian jessie.