zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Windows git log 中文乱码

2023-06-13 09:17:14 时间

文章很多,但是没啥重点,问题的根源在于less的编码问题。所以只需要一步解决,设置 LESSCHARSET=utf-8 环境变量。

设置之后如果无效重启cmd,如果依旧无效重启电脑。

还有另外的解决办法,设置pager为more。

git config --global core.pager more

这样的话如果要查看最后的记录需要加上记录条数:

git log -5 # 显示最后5条记录

☆文章版权声明☆

* 网站名称:obaby@mars * 网址:https://h4ck.org.cn/ * 本文标题: 《Windows git log 中文乱码》 * 本文链接:https://h4ck.org.cn/2019/05/windows-git-log-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81/ * 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


分享文章:

相关文章:

  1. Mac shell(fish) javac 中文乱码
  2. Windows Customized Gina Source Code
  3. Windows Customized Gina In Safe Mode(Windows xp)
  4. Affinic Debugger GUI for GDB(Windows/MaxOS/Linux)
  5. Glass Cmd 6.2.6200.16384 for Windows 8(64bit)
  6. Windows 7中将Live Mail和Messenger最小化到系统托盘
  7. Windows 7 Bing官方主题
  8. libgpod-0.8.3 for windows
  9. Windows 8首款官方主题:黄昏与星光
  10. Windows XP专用的Windows 8 RTM风格主题