git - 使用 Git,如何关闭 "LF will be replaced by CRLF"警告

标签 git line-endings git-config

在 Git 中,当使用 autocrlf = true 标志时,当行尾被更改时仍然会给出警告。

我了解警告的用途,以及如何关闭行结束标志,但如何关闭警告本身?

最佳答案

你可以关闭警告

git config --global core.safecrlf false

(这只会关闭警告,不会关闭函数本身。)

关于git - 使用 Git,如何关闭 "LF will be replaced by CRLF"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6500880/

相关文章:

git - 转换整个目录树的行尾 (Git)

git - SmartGit 不会使用 ssh 进行身份验证

c# - 保存带有 UNIX 行结尾的 XDocument

git - 向 .gitattributes 添加评论/备注

php - 转移站点 - 各种文件问题

git - 如何提交/推送 git 别名(在 .git/config 中)?

git - git-config(1) 说 "colors are used only when the output is to a terminal"是什么意思?

git - `git add --patch` 与 `--word-diff`

git - .gitignore、git add 和文件神秘消失

git - merge 了两个 Git 分支,推送到服务器上,现在如何取消 merge 它们