Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gitconfig(1):
如果没有使用 --file 显式设置,则 git config 将在四个文件中搜索配置选项: ... $(前缀) /etc/gitconfig 系统范围的配置文件。
如果没有使用 --file 显式设置,则 git config 将在四个文件中搜索配置选项:
...
$(前缀) /etc/gitconfig
系统范围的配置文件。
什么在$(prefix)上$(prefix)/etc/gitconfig?
$(prefix)
$(prefix)/etc/gitconfig
环境变量 git 是用它prefix编译的。通常是/usr/local,所以路径是/usr/local/etc/gitconfig。
prefix
/usr/local
/usr/local/etc/gitconfig
更多信息可以INSTALL在 git 存储库中的文件中找到。
INSTALL