LoginSignup
1
1

More than 5 years have passed since last update.

Gitのファイルの名前について

Posted at

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

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1