8

解决 git status 显示中文的问题

 2 years ago
source link: https://www.codewoody.com/posts/18805/
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
Published Mar 20, 2022

解决 git status 显示中文的问题

这篇文章转载简化自 git status 显示中文和解决中文乱码

显然这是一个编码问题,只需要找到正确的配置入口就可以了。

具体配置方式为运行下面的命令应用 git 全局配置:

git config --global core.quotepath false

这应该是修改 git 显示文件路径的时候路径数据的来源。

有的时候因为编码问题,虽然看起来显示了中文,但是其实内容是乱码。这是我们需要修改终端类型的编码。这个方法就是因环境而异了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK