网上大多数人用下面的2步解决。但是这个我设置了没效果。
1、设置git的编码。
git config --global i18n.logoutputencoding utf-8
git config --global gui.encoding utf-8
git config --global core.quotepath false
#### 当前代码库的我也设置一下。
git config i18n.logoutputencoding utf-8
git config gui.encoding utf-8
git config core.quotepath false
2、设置“默认文本编码”。
英文界面, 在 ‘tools’->’option’->’general’中 找到 ‘default text encoding’ , 更改为 utf-8 中文界面, 在 ‘工具’->’选项’->’一般’中 找到 ‘默认文本编码’ , 更改为 utf-8
对我windows7系统有效果的方法。就是把 KB4055002 卸载了。
1、卸载KB4055002。
到 控制面板\系统和安全\Windows Update
点击“安装更新”。搜索到“KB4055002”然后卸载(有些人是“KB4055022”)。
2、重启电脑。
要等一段时间才能重启完成。会显示“配置windows请勿关闭计算机”,等时间长了不能重启就手动重启。