Git命令行中文显示为Unicode解决

Git命令行中文显示为Unicode解决

现象

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ git status 
On branch master
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 restore <file>..." to discard changes in working directory)
modified: "source/_posts/2020-12-19-Git\345\221\275\344\273\244\350\241\214\344\270\255\346\226\207\346\230\276\347\244\272\344\270\272Unicode\350\247\243\345\206\263.md"

Untracked files:
(use "git add <file>..." to include in what will be committed)
themes/fluid/
themes/zhaoo/

no changes added to commit (use "git add" and/or "git commit -a")

方案

1
git config --global core.quotepath false

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!