LoginSignup
15
13

More than 5 years have passed since last update.

emacsでgitのコンフリクト解消するにはsmerge-ediffがよい

Last updated at Posted at 2015-11-03

emacsの中でgitのコンフリクトを解消するツールをいろいろ探していたが、smerge-ediffが一番良い気がしたので、そのメモです。

起動方法はコンフリクトが発生しているファイルを開いて、 M-x smerge-ediff と打つ

起動すると↓のような感じに

I0GlN.png

操作方法は

  • n:次の差分
  • p:前の差分
  • a:左を採用
  • b:右を採用
  • q:編集を終える
  • ?:ヘルプ

終わると元のバッファに戻って、マージ後のファイルになっています。

シンプルだし、見た目きれいだし、いい感じっす!

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