重庆建设摩托官方网站,网站的建设多少钱,小说网站建站程序,厦门市翔安区建设局网站Windows下Git Bash乱码问题解决
缘起
个人用的电脑是Mac OS#xff0c;系统和终端编码都是UTF-8#xff0c;但公司给配发的电脑是Windows#xff0c;装上Git Bash在使用 git commit -m 中文时会乱码
解决
确认有以下配置
# 输入
git config --global --lis…Windows下Git Bash乱码问题解决
缘起
个人用的电脑是Mac OS系统和终端编码都是UTF-8但公司给配发的电脑是Windows装上Git Bash在使用 git commit -m 中文时会乱码
解决
确认有以下配置
# 输入
git config --global --list
# 展示
core.quotepathfalse
gui.encodingutf-8
i18n.commit.encodingutf-8
i18n.logoutputencodingutf-8
i18n.commitencodingutf-8没有的话就配置
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本地配置也要设置
git config --local core.quotepath false
git config --local gui.encoding utf-8
git config --local i18n.commitencoding utf-8
git config --local i18n.logoutputencoding utf-8页面配置 Git bash上工具栏右键 -Options - Text - encoding然后选择utf-8