Mac および Windows での git ログの中国語文字化け

ウィンドウズ

cmd に次のコマンドを入力します。

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
set LESSCHARSET=utf-8

マック

vim ~/.zshrc

.zshrc 入力

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

おすすめ

転載: blog.csdn.net/zxsean/article/details/104922261