Git,Mac OS X和重音字符 [英] Git, Mac OS X and accented characters

查看:139
本文介绍了Git,Mac OS X和重音字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Git的MacOSX上,文件名编码的不同UTF8表示存在问题。 (在SVN中也存在类似的问题。)



这个 here



不知有没有错误报告(在他们的错误跟踪器中,我还没有找到)与任何讨论关于为什么这还没有被拉或任何人正在处理它等。

core.precomposeunicode

   git config --global core.precomposeunicode true 

然后重新登录存储库。为此,你至少需要Git 1.7.12,它与Xcode 4.6捆绑在一起。



就是这样。


On MacOSX with Git, there is a problem with different UTF8 representations of filename encodings. (Similar problems also exists in SVN.)

There is a patch for this here.

I wonder if there is any bug report (in their bug tracker which I haven't found yet) with any discussion about why this haven't been pulled yet or if anyone is working on it, etc.

解决方案

Enable core.precomposeunicode on the Mac

git config --global core.precomposeunicode true

Then reclone the repository. For this to work, you need to have at least Git 1.7.12, which is bundled with Xcode 4.6.

That's it.

这篇关于Git,Mac OS X和重音字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆