git config --global not picking up includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]