ksaitoの日記

日々試したことの覚え書き

gitで日本語ファイル名を正しく表示する

移転しました。

自動的にリダイレクトします。

ファイルシステムエンコードUTF-8が前提のようですが、gitで日本語ファイル名を正しく扱う設定です。

$ git init git
Initialized empty Git repository in /tmp/git/.git/
$ cd git
$ touch テスト
$ git add テスト
$ git ls-files
"\343\203\206\343\202\271\343\203\210"
$ git config --global core.quotepath false
$ git ls-files
テスト
$