Msysgit Chinese problems

Source: Internet
Author: User

1. You cannot enter Chinese characters in the command line. D: \ git \ msysgit \ etc \ inputrc, modify:

 
SetOutput-Meta on
SetConvert-Meta off

Note: This allows normal input of Chinese Characters in git bash, such as the commit log in Chinese.

2. Use the less command to display Chinese characters. D: \ git \ msysgit \ etc \ profile, add:

 
Export lesscharset=UTF-8

3. Chinese characters are displayed in git log. D: \ git \ msysgit \ etc \ gitconfig, add:

[GUI]
Encoding=UTF-8
[I18n]
Commitencoding=GBK

4. Add the custom alias function. D: \ git \ msysgit \ etc \ gitconfig, add:

 
[Alias] Go = "! Bash-C \ "git pull & git Add .; if [\\\ "$ * \\\" =\\\ "\\\"]; then git commit-; else git commit-am \ "$ * \"; FI; git push origin master: Your-ID ;\""

Refer:

Http://note.9hills.us/msysgit.html

How to solve various Chinese problems of msysgit

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.