0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【備忘録】git logで文字化けした時の対処

Posted at

環境

  • Windows10

現象

git logで以下のような文字化けが発生する。

$ git log

VS<E3><82><B3><E3><83><9E><E3><83><B3><E3><83><89><E3><82><92><E5><AE><9F><E8> <A3><85><E3><80><82>
    V<E3><82><B3><E3><83><9E><E3><83><B3><E3><83><89><E3><81><AE><E6><AD><A3><E5>
<B8><B8><E5><BD><A2><E3><82><92><E5><AE><9F><E8><A3><85><E3><80><82>
    .gitignore<E3><82><92><E8><BF><BD><E5><8A><A0>

対処法①(毎回やる必要がある)

$ git --no-pager log

対処法②(1回やればOK)

$ open ~/.gitconfig

config内のpagerをダブルクォーテーションで空に設定。

[core]
pager = ""

参考URL

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?