LoginSignup
0
0

More than 5 years have passed since last update.

Gitで日本語が文字化けする

Last updated at Posted at 2019-01-25

概要

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
0
0
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
0
0