git不支持中文的乱码解决方案

若是你的git文件夹里有中文,在add的时候git

deleted:    "\345\212\250\347\224\273/\345\212\250\347\224\273/AppDelegate.h"json

deleted:    "\345\212\250\347\224\273/\345\212\250\347\224\273/AppDelegate.m"xcode

deleted:    "\345\212\250\347\224\273/\345\212\250\347\224\273/Assets.xcassets/AppIcon.appiconset/Contents.json"app

deleted:    "\345\212\250\347\224\273/\345\212\250\347\224\273/Base.lproj/LaunchScreen.storyboard"spa

deleted:    "\345\212\250\347\224\273/\345\212\250\347\224\273/Base.lproj/Main.storyboard"code

fatal: pathspec '345212250347224273/345212250347224273.xcodeproj' did not match any filesorm


这种状况的解决方案,在当前路径下输入:it

git config --global core.quotepath falsefile

core.quotepath设为false的话,就不会对0x80以上的字符进行quote。中文显示正常。di