14
15

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で文字化けした時の対処法

Last updated at Posted at 2014-06-08

git log 文字化け とかでぐぐるとlvインストールしたり色々めんどくさい事してるけどそれ以外にも解消する方法がある。
コマンド一つでだ。

ShellScript
$ sudo localedef -f UTF-8 -i ja_JP ja_JP

vagrantの公式サイトからcentos6.5のboxイメージを作成するとほぼ素の状態で、日本語対応なんぞしてくれてないのでgit logすると以下のように文字化けする。
スクリーンショット 2014-06-08 3.54.52.png

コマンドを打ったあとgit logして日本語がきちんと表示されていれば成功

14
15
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
14
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?