9

Linux下git中文乱码的问题

 3 years ago
source link: https://yytan02.gitee.io/blog/2018/05/09/linux-git/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

借着之前windows上的经验,git很快就安装好了。 正在开心之余,突然发现bash里的中文文件名都变成了乱码。。。

一、解决之前

看着下面这样一串数字的乱码,内心是很拒绝的 1.jpg

二、解决方案

在bash下执行如下命令,就不会对0x80以上的字符进行quote,中文就可以正常显示了。 git config --global core.quotepath false

三、解决之后

再看着熟悉的中文,是不是莫名的有一种亲切感 2.jpg



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK