当前位置: 代码迷 >> 综合 >> git Warning: Your console font probably doesn't support Unicode.
  详细解决方案

git Warning: Your console font probably doesn't support Unicode.

热度:15   发布时间:2023-12-06 21:16:11.0

在提交代码时,git commit -m '信息' ,然后提示警告如下:

Warning: Your console font probably doesn't support Unicode. If you experience strange characters in the output, consider switching to a TrueType font such as Consolas!

警告:您的控制台字体可能不支持Unicode。如果您在输出中遇到奇怪的字符,请切换到正确的字体

原因:在IDEA 和 webstrom 中提交代码时, git commit -m '参数' 中的参数不支持中文

解决办法:依次执行以下命令,中括号中为全局设置,可设置也可不设置

  1. git config [--global] core.quotepath off
  2. git config [--global] --unset i18n.logoutputencoding
  3. git config [--global] --unset i18n.commitencoding

执行完成之后,再次提交有中文时,不会有此警告

  相关解决方案