我正在跨 Windows 和 Linux 机器进行开发。我意识到,使用 git config 时core.autocrlf = true
,一些文件的 CRLF 从 Windows 转换为 Linux 中的 LF。
所以在我的 Windows 上,我会在一个文本文件中看到:
sometextCRLF
moreCRLF
hahahaCRLF
CRLF
moreCRLF
CRLF
在 Linux 上:
sometextLF
moreLF
hahahaLF
LF
moreLF
LF
我跑了之后有什么办法吗
git config core.autocrlf true
强制推动一切,以免我的 CRLF 丢失?(我现在无法推送任何内容,因为我没有任何更改。)