gpt4 book ai didi

windows - Windows 中的 core.autocrlf 在哪里设置?

转载 作者:可可西里 更新时间:2023-11-01 10:05:05 24 4
gpt4 key购买 nike

我在 Windows 7 中安装了 git 2.6.2。

我将 core.autocrlf 设置为 False。我想知道该设置来自哪里。我有以下奇怪的行为:

> cd c:\
> git config --global --list | select-string autocrlf
> git config --system --list | select-string autocrlf
fatal: unable to read config file 'C:\Program Files\Git\mingw64/etc/gitconfig': No such file or directory
> git config --list | select-string autocrlf

core.autocrlf=false
core.autocrlf=False


> git config core.autocrlf
False

所以我没有在全局配置中设置core.autocrlf。我没有系统配置。我目前不在 git 目录中。不过,我得到不少于两个 core.autocrlf 设置。它们是由 Git 二进制文件生成的吗? (如果是这样,为什么有两个设置?)​​

最佳答案

在 C:\ProgramData\Git\config 中查找。

并查看 this question有关更多详细信息(不仅仅是 core.autocrlf 具有“幻影”值,还有更多 :))

关于windows - Windows 中的 core.autocrlf 在哪里设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33285000/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com