LoginSignup
0
2

More than 5 years have passed since last update.

Windows環境のGitからタグを作成すると文字化けする

Posted at

手短に

状態

  • コミットメッセージは文字化けしない
  • タグメッセージが文字化けする

要因

  • fileencodingsが設定されていない

対策

  • インストールしたGitフォルダにあるvimrcを編集(Git/share/vim/vimrc)
  • TAG_EDITMSGを追記する

autocmd BufReadPre COMMIT_EDITMSG,TAG_EDITMSG,git-rebase-todo setlocal fileencodings=utf-8

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