背景:
用git status查看git状态提示中文乱码:274\232\350\256\256\346\200\273\347\273\223.png
解决方案:
在bash提示符下输入(mac下gst乱码起作用了) windows下是可用的
git config --global core.quotepath false
----------20211114(20220708再次验证win10下可行)--------
step1:在git安装目录下找到C:\Program Files\Git\etc\bash.bashrc文件,在文件的最后添加:
export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"
step2:在Terminal控制台输入:set LESSCHARSET=utf-8
step3:接着设置git bash控制台text编码也设置为utf-8
step4: git config --global core.quotepath false