1、運行Git Bash窗口,在該窗口導航條(即最上面)右鍵,選擇Options−>Text,找到下面兩處
Locale:選擇 zh_CN
Charector set:選擇 UTF-8
2、
git config --global i18n.commitencoding utf-8 --註釋:該命令表示提交命令的時候使用utf-8編碼集提交
git config --global i18n.logoutputencoding utf-8 --註釋:該命令表示日誌輸出時使用utf-8編碼集顯示
export LESSCHARSET=utf-8 --註釋:設置LESS字符集爲utf-8
參考文章:添加鏈接描述