git status 路径里的汉字不显示
症状
>git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: "\346\225\260\350\256\272.md"
new file: "\347\272\246\346\225\260\344\270\252\346\225\260.jpg"
Untracked files:
(use "git add <file>..." to include in what will be committed)
../bfs/
"\346\225\260\350\256\272.pdf"
"../\347\202\271\345\217\214\350\277\236\351\200\232/biconnected.pdf"
解决办法
git config --global core.quotepath false
>git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: 数论.md
new file: 约数个数.jpg
Untracked files:
(use "git add <file>..." to include in what will be committed)
../bfs/
数论.pdf
../点双连通/biconnected.pdf