GIT乱码出现解决记录

来源:互联网 发布:和珅 知乎 编辑:程序博客网 时间:2024/05/16 08:53

git在commit时输入中文再次乱码。显示为类似。

搜索了许多解决方案都未能彻底解决。最终参考了如下方式彻底解决了问题。

$ git config --global core.quotepath false          # 显示 status 编码$ git config --global gui.encoding utf-8            # 图形界面编码$ git config --global i18n.commit.encoding utf-8    # 提交信息编码$ git config --global i18n.logoutputencoding utf-8  # 输出 log 编码$ export LESSCHARSET=utf-8

链接

:http://howiefh.github.io/2014/10/11/git-encoding/

原创粉丝点击