Solve the problem of git bash in Chinese garbled under windows

Source: Internet
Author: User

After downloading the Windows version of Git, garbled:

This is obviously intolerable and the solution is as follows:

Modify the profile file in the C:\Program files (x86) \git\etc My installation directory to add a paragraph:

Alias ll='/bin/ls-alf--show-control-chars--color=tty'ls=' /bin/ls--show-control-chars-f--color=tty '

Note that sometimes you will be prompted to occupy the file, but with the resource manager can not find exactly which process occupies, it is possible to create a new profile, modified, directly replace the file in the C drive.

In fact, the modified content is simply an alias for the LS command, plus the terminal color rendering.

The effect is as follows:

Of course, this terminal is not as good as Linux, but not the virtual machine, it is also convenient.

Solve the problem of git bash in Chinese garbled under windows

Related Article

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.