场景:
在中文情况下 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: "345274200351242230346212245345221212/345267245347250213347241225345243253347240224347251266347224237345255246344275215350256272346226207345274200351242230346212245345221212342200224346235250345263273351271217.doc"
- 1
- 2
- 3
- 4
- 5
- 6
解决方法:
git config --global core.quotepath false