LoginSignup
5
5

More than 5 years have passed since last update.

mergetoolでgitのdiffを見やすくする

Last updated at Posted at 2014-04-17

コンフリクトしたときに git diff で差分を表示するとコードが混ざってしまって、よくわからない場合があります。
そういうときは、gitの mergetool コマンドが便利です。
mergetool コマンドは差分を様々なtoolで表示してくれます。

例えば、vimdiffを使う場合

$ git mergetool -t vimdiff

どのようなtoolが使えるかは —tool-help オプションで確認できます。

$ git mergetool --tool-help
5
5
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
5
5