【发布时间】:2016-11-19 06:43:07
【问题描述】:
我正在使用 Windows 和 PHPStorm IDE 进行 Web 开发。在 Git Bash 中,当我想添加 (git add .) 或 commit 时,会有数百个这样的警告:
warning: LF will be replaced by CRLF in ...
The file will have its original line endings in your working directory.
但如果我在 Git Bash 中执行以下操作:
git config --global core.autocrlf false
不再有这些警告。将core.autocrlf 设置为false 是否有任何风险或缺点?或者我不应该担心?正如我已经写过的,我正在使用网络应用程序(php 文件、html 文件、css ......稍后将被推送到 GitHub 上的某个远程代表或复制到生产 Linux 服务器......)。对不起我的英语不好。
【问题讨论】:
标签: git bash github phpstorm core.autocrlf