1.问题描述:
idea 开发代码中的 中文正常,但提交到码云时填写的提交日志是乱码。
提交到码云后是这样的:
在 push 前 IDEA 中显示的也是乱码,形如:
2. 解决:
找到自己的 git 安装目录,在该路径下执行以下3条设置命令, 分别设置 提交文件、界面、提交日志 这三者的编码格式 。
git config --global i18n.commitencoding utf-8
git config --global gui.encoding utf-8
git config --global i18n.logoutputencoding utf-8
3. 测试效果 :
参考:https://blog.csdn.net/nthack5730/article/details/51563310
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有