开发者

Git's alternative to .hgrcpath

开发者 https://www.devze.com 2023-01-22 10:48 出处:网络
Does Git have anything like 开发者_如何学运维Hg\'s HGRCPATH, i.e. an enviromental variable which you can modify to change the location where Hg will search for its global configuration file.

Does Git have anything like 开发者_如何学运维Hg's HGRCPATH, i.e. an enviromental variable which you can modify to change the location where Hg will search for its global configuration file.

In git that can be somewhat accomplished by changing HOME, but that will affect unknown number of other applications, which is why I'm trying to avoid it.


There's environmental variable called GIT_CONFIG:

Take the configuration from the given file instead of .git/config. Using the "--global" option forces this to ~/.gitconfig. Using the "--system" option forces this to $(prefix)/etc/gitconfig.

Also check git docs for more information about git configs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号