合肥做网站一般多少钱,2017 上海网站备案,长沙企业网站建设优度,如何建设百度网站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