Gitは基本的にファイルの名前をASCIIにコード転換してから展示する。例えば、虚無.txt
というファイルは、Gitでは\350\231\232\347\204\241.txt
と表現されている。
SinriMac:~/Codes/Leqee/erp Sinri$ touch 虚無.txt
SinriMac:~/Codes/Leqee/erp Sinri$ git status
On branch dev
Your branch is up-to-date with 'origin/dev'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\350\231\232\347\204\241.txt"
It took 2.41 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
nothing added to commit but untracked files present (use "git add" to track)
SinriMac:~/Codes/Leqee/erp Sinri$
それを日本語のままにしたい場合、.gitconfig
を編集し、下記のことを確保すればいい。
[core]
quotepath = false
メモとして
もともとそのツールを利用したいがそのような支障が出てくる。それで解決できる。
https://github.com/oleander/git-fame-rb/issues/74