## 事象
```console
git init
touch 日本語です.md
```
として `git status` を実行すると
```console
$ git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\346\227\245\346\234\254\350\252\236\343\201\247\343\201\231.md"
nothing added to commit but untracked files present (use "git add" to track)
```
のように日本語部分が正しく表示されない。 `git log --name-only` などでも同じ。
### 環境
| 対象 | バージョン |
| ----------- | ------ |
| [[macOS]] | 15.7.2 |
| [[Ghostty]] | 1.2.3 |
| [[Git]] | 2.52.0 |
## 原因
デフォルトでは[[core.quotePath]]が`true`であり、日本語はエスケープされてしまうから。
## 解決方法
[[gitconfig]]で[[core.quotePath]]を`false`に設定する。
```console
git config --global core.quotepath false
```
こうなっていればOK。
```ini
[core]
quotepath = false
```
## 参考
- [CLIからgit コマンド実行時、日本語が数字で表示される対策](https://zenn.dev/icsvdma/articles/8a9a2cca2cdabe)