我正在从一个存储库中签出,在那里我是 Mac 和 Linux 海洋中唯一的 Windows 用户。我的 IDE 在我的 Windows 机器上运行,代码被推送到 VM。代码不会同步回主机。当我准备在我的 Windows 主机上添加/提交时,我收到warning: LF will be replaced by CRLF
消息。
这些是我的 Git 设置:
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
core.editor='C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession
core.filemode=false
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
Run Code Online (Sandbox Code Playgroud)
我不确定为什么core.filemode=false
会列出两次。
我在 Windows 上收到此警告有什么原因吗?我是否在我的设置中做一些愚蠢的事情(完全可能)?或者,这在这种情况下是否有意义,如果是,为什么?