CentOS 6.4 git Chinese display garbled problem solving method

Source: Internet
Author: User
Tags centos

System version: CentOS 6.4
Git version: 1.7.1, installed directly using Yum.

When you use Git status to view, if the filename is in Chinese, then the garbled (literally escaped character) is displayed, as shown in the following figure:

Chinese does not display correctly when Git views files

How to display Chinese normally?

1, the system itself to support Chinese

If your system does not support Chinese display, you will need to install the appropriate language packs and configurations. There are a lot of introductions on the Internet in this respect, it's not much to explain.

2. Modify Git's core configuration Quotepath to False

The code is as follows Copy Code
$ git config core.quotepath false

You need to use the –global parameter if the global effect is required

The code is as follows Copy Code

$ git config--global core.quotepath false

Summarize

Here quotepath can be split into quote path, which means to escape the path. If git wants to display Chinese correctly, you need system support first and then set the entry to False.

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.