ILD

git log出现ESC
作者:Yuan Jianpeng 邮箱:yuanjp@hust.edu.cn
发布时间:2018-11-4 站点:Inside Linux Development

git log出现ESC[33m等乱码的东西


这是由于git的分页less,将转义序列分开了。


执行

git config --global core.pager "less -r"


解决问题:


参考

https://stackoverflow.com/questions/20414596/how-to-get-rid-of-esc-characters-when-using-git-diff-on-mac-os-x-mavericks


Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.