git status 下中文显示乱码问题解决

  $ git status -s
                ?? "\350\257\264\346\230\216.txt\n
                $ printf "\350\257\264\346\230\216.txt\n"
                说明.txt
 
 
        通过将Git配置变量 core.quotepath 设置为false,就可以解决中文文件名称在这些Git命令输出中的显示问题,
        示例:
                $ git config --global core.quotepath false
 
                $ git status -s
 
                ?? 说明.txt
posted @ 2017-11-02 17:18  MysticGrrrr  阅读(597)  评论(0编辑  收藏  举报