要么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显示中文如上异常
如上求解