Let git and tortoisegit support Chinese file names/UTF-8 in Windows

Source: Internet
Author: User

Because msysgit and tortoisegit have officially supported UTF-8, the content of this article is for reference only.

Git is the most widely used distributed version management system with powerful functions and fast speed.

Git was originally unavailable for Windows and is now widely used in msysgit, a new porting project. Msysgit has improved support for git functions, and the only problem is poor support for Chinese file names. A similar problem exists on mercurial and tortoisehg. See "Let mercurial and tortoisehg support Chinese file names/UTF-8". In short, using git in Windows has the following problems:

  • The library generated in Windows is different from that in Linux. The file name encoding is incompatible, leading to garbled file names.
  • Libraries in Windows and Linux cannot be referenced from each other.
  • The libraries generated by windows in different languages are also incompatible and cannot be referenced from each other.

This is really a serious problem, especially for products that require internationalization or cross-platform access.

 

I modified git and tortoisegit code so that they both use UTF-8 encoding directly to store file names to stay consistent with Linux. The modified version can be downloaded at http://code.google.com/p/utf8-git-on-windows/downloads. I have been using this version for a while, and the basic functions can be used normally. Tortoisegit:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.