1、windows git log 中文乱码

在windows 中,用cmd或者bash中使用git时候,经常遇到乱码问题,网上类似的教程很多,一般可以直接在cmd/bash中输入如下设置命令:

git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commit.encoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8
这样设置完后,当前命令窗口是没问题的。但是,另打开一个还是不行。然后就想到应该是最后一句的问题。这一个并没有将这个变量保存起来。所以,就直接将最后一个变量添加到Windows环境变量中:

 git log 常见问题及解决方法

相关文章:

  • 2022-01-20
  • 2022-03-03
  • 2022-02-05
  • 2022-02-22
  • 2021-10-22
  • 2021-12-18
猜你喜欢
  • 2021-12-03
  • 2021-12-19
  • 2021-08-25
  • 2021-07-13
  • 2022-01-03
  • 2021-09-10
相关资源
相似解决方案