加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

解决windows git乱码问题

发布时间:2020-12-14 05:32:28 所属栏目:Windows 来源:网络整理
导读:在windows中打开git bash git config --global i18n.commitencoding utf-8? ? ? ?设置提交日志使用utf-8 git config --global i18n.logoutputencoding utf-8? ? 设置输出日志时使用utf-8 export LESSCHARSET=utf-8? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?设置LESS字

在windows中打开git bash

git config --global i18n.commitencoding utf-8? ? ? ?设置提交日志使用utf-8

git config --global i18n.logoutputencoding utf-8? ? 设置输出日志时使用utf-8

export LESSCHARSET=utf-8? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?设置LESS字符集为utf-8

输入这三个命令之后,在git bash中中文乱码问题基本解决。

?

在powershell中的中文乱码问题解决方法

LESSCHARSET=utf-8? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?设置环境变量,将变量“LESSCHARSET”的值设置为utf-8

git config --global core.quotepath false? ? ? ? ? ? ? ? 解决中文路径乱码问题

?

使用gitk或者git gui界面,查看更改前后的不同时也会有乱码。

git config --global gui.encoding utf-8? ? ? ? ? ? ? ? ? ? 解决图形界面乱码问题

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读