要么git log 乱码,要么git status乱码

智能高科 2017-08-27 10:02:09
OS:win10
git 客户端版本:git for windows

$ git --version
git version 2.14.1.windows.1

如果按默认设置 则:

$ git status
On branch master
Your branch is ahead of 'origin/master' by 7 commits.
(use "git push" to publish your local commits)

Untracked files:
(use "git add <file>..." to include in what will be committed)

鐗涗汉.txt

nothing added to commit but untracked files present (use "git add" to track)

结果:git status时显示中文名称乱码,git log时候中文正常

如果在在option中text选择用gbk编码方式则:

$ git log
commit 6fef14e45a78e00e54dd7e2e737fe26c7306df73 (HEAD -> master)
Author: xiaojinyu <alexai@aliyun.com>
Date: Sun Aug 27 20:57:40 2017 +0800

<CA><C0><BD><E7><C0><FA>ʷ

结果:git status 中文名正确,git log显示中文如上异常


如上求解
...全文
280 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
智能高科 2017-09-03
  • 打赏
  • 举报
回复
自己回复下吧 ,安装的时候选择全部是unix的输入输出就可以了

6,185

社区成员

发帖
与我相关
我的任务
社区描述
windows网络管理与配置
社区管理员
  • 网络管理与配置社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧