概要
Git で日本語が文字化けする際の対処法をメモ。
ディレクトリ
C:\work\playground\mojibake>dir
2019/01/25 16:55 6 日本語.txt
1 個のファイル 6 バイト
git status
C:\work\playground\mojibake>git status
On branch master
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.txt"
nothing added to commit but untracked files present (use "git add" to track)
文字化けを解消する
ローカルリポジトリのみ解消する場合
git config --local core.quotepath false
すべてのリポジトリで解消する場合
git config --global core.quotepath false