修改git diff乱码:
export LESSCHARSET=utf-8
持久化:
修改git bash安装目录下配置文件:
vim C:\Program Files\Git\etc\profile.d\env.sh
# 增加export LESSCHARSET=utf-8配置
export LESSCHARSET=utf-8
修改git bash安装目录下配置文件:
vim C:\Program Files\Git\etc\profile.d\env.sh
# 增加export LESSCHARSET=utf-8配置