2015-10-13 44 views
2

为什么git status和相关工具将文件名中的unicode视为二进制文件?为什么git将unicode显示为二进制文件?

[991][email protected]:test$ git init foo 
Dépôt Git vide initialisé dans /home/anarcat/test/foo/.git/ 
[992][email protected]:test$ cd foo 
[993][email protected]:foo$ touch hé 
[994][email protected]:foo$ git add hé 
[996][email protected]:foo$ git status --porcelain 
A "h\303\251" 

我想到这将会是:

A hé 

与口音和Unicode罚款文件的内容git的交易,为什么文件名特殊的?

回答

4

默认情况下,git以引用的八进制表示法打印非ascii文件名。你可以禁用这个

git config --global core.quotepath off 
+0

这就是我正在寻找的,谢谢雷内! :)我希望这是默认的...至少git应该尊重我的区域... – anarcat

相关问题