晴空的code 2022-11-10 11:20 采纳率: 73.2%
浏览 63
已结题

git 请问commit 后面的尖括号是什么意思

img


#请问commit 后面的尖括号是什么意思,请指点一二,感谢#

  • 写回答

3条回答 默认 最新

  • bluetata 云计算领域优质创作者 2022-11-10 11:44
    关注

    是你进行提交commit的时候字符编码和git解析的decode编码不一致造成的,

    解决办法如下:

    第一步:打开你的终端,依次输入以下命令:

    $ git config --global core.quotepath false # 设置 git status utf-8编码
    
    $ git config --global gui.encoding utf-8 # 设置Git GUI界面utf-8编码
    
    $ git config --global i18n.commit.encoding utf-8 #设置commit信息utf-8编码
    
    $ git config --global i18n.logoutputencoding utf-8 # 设置输出 log utf-8 编码
    

    第二步:新建系统环境变量 LESSCHARSET并设置为utf-8

    img

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 11月22日
  • 已采纳回答 11月14日
  • 创建了问题 11月10日