git - how to use include.path on Windows -
[master +0 ~1 -0]> git --version
git version 1.9.5.msysgit.1
i found answer -- https://stackoverflow.com/a/28520596/107037 -- can't work me.
in ~/.gitconfig, have
[user] name = cb email = cb@gmail.com [include] path = "c:/common/git/commonconfig"
then running
> git config --global -l
produces
user.name=cb user.email=cb@gmail.com include.path=c:/common/git/commonconfig
i have tried forward slashes, backslashes, quoting path, not quoting path....
1 combination haven't tried 1 works, apparently.
hints, powerful feature sharing settings across computers.
if you're using git config -l
check whether include working expected, you'll need ensure you're providing --includes argument, otherwise doesn't perform include processing.
the documentation states defaults on, doesn't seem case on windows.
--[no-]includes respect include.* directives in config files when looking values. defaults on.
Comments
Post a Comment