GIT: does not handle filenames which contain unico

2019-02-12 14:31发布

Issues:

  • Using ls in GIT shows all unicode in filenames as '?' (i.e. ???.mp3).
  • When using git add -A the following error is returned: "fatal: unable to stat 'example/???.mp3': no such file or directory"

Is there a solution to this?

Thanks.

3条回答
beautiful°
2楼-- · 2019-02-12 14:59

As of MSysGit 1.7.10 (the latest version at this time), Unicode is correctly supported on Windows, at the condition you tweak some settings and use a truetype font in the console.

See explanations here, including how to deal with previous repositories.

查看更多
别忘想泡老子
3楼-- · 2019-02-12 15:02

Msysgit doesn't have support for non-ASCII characters in filenames. See its issue 80 for details.

Consider using Cygwin's git package instead, which does have full UTF-8 support.

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-02-12 15:20

Git for Windows now uses Unicode for filenames.

[Edit: s/not/now/.. sic :( ]

查看更多
登录 后发表回答