Git Chinese garbled on Mac

Source: Internet
Author: User
Tags using git


Today from the window cut mac,git use various problems. Typically, git commit can use Chinese comments, but using git log to see the time is garbled, garbled effect is as follows:

<B1><E0><BC><AD><B2><E2><CA><D4><D3><C3><C0> <FD>

However, there is no pressure in English.


Then online a disorderly find, a lot of blog said set git config--global core.quotepath false can, and then in terminal run git config--global core.quotepath false 。 Then run git log to find Chinese or garbled.


What is the reason for this? Others set up all OK, and then think about the next, is not the reason I installed the oh-my-zsh.

And then search the Internet oh-my-zsh not support the Chinese article, and then find the solution is as follows:
1. Open the Oh-my-zsh configuration file ~/.ZSHRC.
2. Add the following code to the last side of the file:

Export Lc_all=en_us. UTF-8 export Lang=en_us. UTF-8

3. Restart the terminal (terminal) or enter the source ~/.ZSHRC


Sure enough, everything is OK.

Git Chinese garbled on Mac

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.