'How to change chinese filename from gbk to utf-8 in windows git-bash?

I found if I commit a filename with Chinese character to some git repo, I cannot pull that repo in macos again:

$ git pull

...

error: unable to create file ???: Illegal byte sequence

Google told me that I should change the filenames from gbk to utf-8 on Linux. But I only have windows/macos machines.

Can I change the filenames from gbk to utf-8 in git-bash for windows? Thanks!

Btw, these filename have special meaning and I cannot simply change those name to English words. I must keep those names in another encoding.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source