美文网首页
git log 乱码

git log 乱码

作者: fulj | 来源:发表于2019-08-19 16:59 被阅读0次
$ 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
# 最后一条命令是因为 git log 默认使用 less 分页,所以需要 bash 对 less 命令进行 utf-8 编码

windows 上:


设置环境变量

相关文章

网友评论

      本文标题:git log 乱码

      本文链接:https://www.haomeiwen.com/subject/qqdesctx.html