我在Mac OS X上使用git 2.5.4.
我有文件名包含é和git显示它与转义.有没有办法让它使用unicode并显示角色?终端显然可以处理它.
> ls
Sél
> git status
Untracked files:
(use "git add <file>..." to include in what will be committed)
...
"S\303\251l"
Run Code Online (Sandbox Code Playgroud)
我希望该文件显示为Sél,而不是S\303\251l.
Von*_*onC 46
首先检查是否有git config core.quotePath false帮助.
git config --global core.quotePath false
Run Code Online (Sandbox Code Playgroud)
如果没有,如" Git和Mac OS X上的变形金刚问题 "中所述,请尝试:
git config --global core.precomposeunicode true
Run Code Online (Sandbox Code Playgroud)
core.precomposeUnicode
Run Code Online (Sandbox Code Playgroud)
此选项仅供Mac OS实现Git使用.
当core.precomposeUnicode=true,Git恢复由Mac OS完成的文件名的unicode分解.