LoginSignup
4

More than 5 years have passed since last update.

マージコンフリクトをチェックする git alias

Posted at

複数のブランチを同時に編集するとき、マージするとコンフリクトが大量に出て、resetしないといけなくなることが多い。

そのチェックためにtry-mergedontmergeのaliasを作りました。

一緒に使うgit commandは以下です:

  • try-merge: コードをマージしようする、ただしcommit作らない
  • dontmerge: try-mergeした状態から戻す (work treeをcleanに)
  • commit: try-mergeした状態から進んでcommitを作る

ソース

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
4