PowerShell | git log 中文亂碼問題解決

@PowerShell | git log 中文亂碼問題解決)

PowerShell | git log 中文亂碼問題解決

1、在PowerShell中輸入以下命令

git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commit.encoding utf-8
git config --global i18n.logoutputencoding utf-8
$env:LESSCHARSET=‘utf-8’

2、在系統環境變量中添加變量LESSCHARSET爲utf-8.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章