ksaitoの日記

日々試したことの覚え書き

git mergetoolを使ったコンフリクトの解消

移転しました。

自動的にリダイレクトします。

gitのmergetoolでemacsのemergeを選択する設定です。

git config --global merge.tool emerge

コンフリクトが発生した場合に、mergetoolを起動するとemacsのemergeが起動します。

git mergetool

abで、どちらの変更を採用するか、pnで前後の変更へ移動、qでマージ完了です。 マージ処理をキャンセルするには、Ctrl-]です。