0
0

More than 3 years have passed since last update.

[git] windows環境でgit log すると日本語が文字化けするのを直す

Last updated at Posted at 2021-03-30

原因

windowsのgitで使われているlessパッケージが日本語を嫌って文字化けしている

方法

環境変数にlessのcharsetをutf8が使えと教えてあげるひつようがある。

1

ターミナル
$ git config --global core.pager "LESSCHARSET=utf-8 less"

2

システム環境変数に新規で変数名LESSCHARSET変数値utf-8で登録する

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