git status 显示中文乱码

 

场景:

在中文情况下 Git status是这样的:

Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   "\345\274\200\351\242\230\346\212\245\345\221\212/\345\267\245\347\250\213\347\241\225\345\243\253\347\240\224\347\251\266\347\224\237\345\255\246\344\275\215\350\256\272\346\226\207\345\274\200\351\242\230\346\212\245\345\221\212\342\200\224\346\235\250\345\263\273\351\271\217.doc"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

解决方法:

git config --global core.quotepath false

posted @ 2020-09-08 13:42  行走的思想  阅读(654)  评论(0编辑  收藏  举报