A solution to the garbled problem of git status under Windows

Source: Internet
Author: User
Tags i18n

Windows git bash is a lot of garbled, but at last it's solved!

Ya's finally no more toss!

Remember to use Git's latest version before watching the tutorial!


Question one:

Garbled as follows:

"\344\270\212\347\"

Workaround: Enter the following command under Bash

git config--global core.quotepath false

Note: This issue Msys and Cygwin both have


Question two:

It is not garbled, Git status display Chinese file name garbled.

Solve:

Open git Bash and right-click on the title bar to select options. Modify the locale in text to "C", Character set to "UTF-8", and close Git Bash.

Reopen git Bash and the problem disappears.

Note: Cygwin does not have this problem, but the Cygwin below does not open AUTOCRLF, and there is no other place for Windows to optimize, so the preferred or msys (that is, git for Windows).


Question three:

Other strange problems, such as the source tree garbled, or use as set up, Git log or something garbled

Solve:

Git config-e

git config--global-e

After opening the configuration file, remove all i18n settings inside

Note: This problem is because the previous version of Git to solve the garbled need to set i18n, but the new version is set to have a problem, so it is good to clear.

This article is from the "Joseph4tec" blog, make sure to keep this source http://joseph4tec.blog.51cto.com/9646751/1890676

A solution to the garbled problem of git status 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.