git status 中文文件名编码问题


#Git#


使用 Windows WSL Ubuntn 中的 git 执行 git status 命令,发现中文文件名变成了类似下面的东西:

\350\256\244\350\257\201\344\270 ...

解决方案:

git config --global core.quotePath false

关于 core.quotePath 介绍:https://git-scm.com/docs/git-config

配置是写在文件中的,具体见~/.gitconfig


( 本文完 )