【发布时间】:2017-03-25 23:20:53
【问题描述】:
我正在从一个存储库中签出,我是 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
我不确定为什么core.filemode=false 被列出两次。
我在 Windows 上收到此警告是否有原因?我是否在我的设置中做一些愚蠢的事情(完全有可能)?或者,这在这种情况下是否有意义,如果是,为什么?
【问题讨论】:
-
感谢@IngoB!这是我见过的最容易理解的故障。