git not displaying unicode file names

后端 未结 1 1697
轻奢々
轻奢々 2020-12-23 20:15

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 t

相关标签:
1条回答
  • 2020-12-23 20:32

    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.

    0 讨论(0)
提交回复
热议问题