Windows Git中文文件名乱码

时间:2021-08-14 15:01:44

在Windows下使用git,安装包如下:

https://git-for-windows.github.io/

在使用git bash时git 默认中文文件名是 xx%

是因为 对0x80以上的字符进行quote

只需要

git config core.quotepath false

core.quotepath设为false的话,就不会对0x80以上的字符进行quote。中文显示正常

参考网址:http://www.educity.cn/wenda/91414.html