git bash中文文件名乱码的处理方法

DC / 2023-08-17 / 原文

1.git bash 窗口右键,选择 Options ->Text,选择zh_CN、UTF-8
image
2.git bash终端执行命令

git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
export LESSCHARSET=utf-8