在windows上使用git时,有的时候会遇到中文显示乱码的问题,如下图:
git bash中文乱码

解决办法:

1、输入命令:git config --global core.quotepath false
2、git bash终端也要设置成中文和utf-8编码:

git bash中文乱码
即:
在git bash的界面中右击空白处,弹出菜单,选择选项->文本->本地Locale,设置为zh_CN,而旁边的字符集选框选为UTF-8。

英文显示则是:
Options->Text->Locale改为zh_CN,Character set改为UTF-8

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-10-10
  • 2021-09-30
  • 2021-12-11
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-06-26
  • 2021-09-17
  • 2021-12-02
  • 2022-01-13
相关资源
相似解决方案