Under solve windows git bash view the log garbled

In windows, when Chinese ls can display correctly. Execute git log -n 3, the commit message is displayed garbled.

The first step, open the git bash options -> test-> Locale Select zh_CN & Character Set Select UTF-8

 

The second step, edit C: \ Users \ username \ .gitconfig

 

Guess you like

Origin www.cnblogs.com/feihualuoshi/p/11590124.html