Git .hgrcpath 的替代品
Git 是否有类似 Hg 的 HGRCPATH 的东西,即一个环境变量,您可以修改它来更改 Hg 搜索其全局配置文件的位置。
在 git 中,这可以通过更改 HOME 来完成,但这会影响未知数量的其他应用程序,这就是我试图避免它的原因。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个名为
GIT_CONFIG
的环境变量:另请检查 git 文档 了解有关 git 配置的更多信息。
There's environmental variable called
GIT_CONFIG
:Also check git docs for more information about git configs.