Git常见错误收集
发送
git commit
代码时提示:Warning: Your console font probably doesn‘t support Unicode. If you experience trange characters in the output, consider switching to a TrueType font such as ucida Console!
这是代码中含有中文导致的,且把代码改为utf-8也是解决不了的,查询了很多资料,最后终于解决啦,现分享给大家:
依次执行以下命令:git config [--global] core.quotepath off git config [--global] --unset i18n.logoutputencoding git config [--global] --unset i18n.commitencoding
再次git commit和git push应该就不会弹出这个note了。
[Git]
warning: LF will be replaced by CRLF
问题解决方法 原因分析:CRLF -- Carriage-Return Line-Feed
回车换行 就是回车(CR, ASCII 13, \r)
换行(LF, ASCII 10, \n)
。 这两个ACSII字符不会在屏幕有任何输出,但在Windows中广泛使用来标识一行的结束。而在Linux/UNIX系统中只有换行符。 也就是说在windows中的换行符为 CRLF, 而在linux下的换行符为:LF$ rm -rf .git $ git config --gobal core.autocrlf false $ git init $ git add .