简体   繁体   English

为什么Git将.gitconfig放在网络硬盘上?

[英]Why Does Git Put .gitconfig on Network Drive?

I recently installed Git for Windows ( https://git-scm.com/download/win ) on my machine and was having issues finding my global .gitconfig file (see stackoverflow.com/questions/39670247/cant-find-global-gitconfig-file/39671485). 我最近在我的机器上安装了Git for Windows( https://git-scm.com/download/win ),并且在查找我的全局.gitconfig文件时遇到问题(请参阅stackoverflow.com/questions/39670247/cant-find-global- gitconfig文件/ 39671485)。

Turns out it was on a share/network drive. 原来它是在共享/网络驱动器上。 Why would Git put the global .gitconfig file there? 为什么Git会将全局.gitconfig文件放在那里?

This should be defined by environment HOME, which, as far as I understand, may be defined by windows domain settings to point to some "your" place in network. 这应该由环境HOME定义,根据我的理解,可以通过Windows域设置定义以指向网络中的某个“您的”位置。 It is possible to redefine it in "environment for this user" settings dialog 可以在“此用户的环境”设置对话框中重新定义它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM