git not displaying unicode file names
GitUnicodeGit Problem Overview
I'm using git 2.5.4 on Mac OS X.
I have filenames containing é
and git is displaying it with escapes. Is there a way to make it use unicode and show the character? The terminal can obviously handle it.
> ls
Sél
> git status
Untracked files:
(use "git add <file>..." to include in what will be committed)
...
"S\303\251l"
I'd like that file to display as Sél
, not S\303\251l
.
Git Solutions
Solution 1 - Git
Check first if git config core.quotePath false
helps.
git config --global core.quotePath false
If not, as stated in "Git and the Umlaut problem on Mac OS X", try:
git config --global core.precomposeunicode true
From git config
man page:
core.precomposeUnicode
> This option is only used by Mac OS implementation of Git.
When core.precomposeUnicode=true
, Git reverts the unicode decomposition of filenames done by Mac OS.