TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Git-imerge: rebase/merge preserving history avoiding all-or-nothing

1 点作者 peterwaller超过 6 年前

1 comment

peterwaller超过 6 年前
Just discovered this tool while doing a messy rebase, and can&#x27;t believe it has had very little discussion I can find.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mhagger&#x2F;git-imerge" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mhagger&#x2F;git-imerge</a><p>No previous commentary on it so far on HN:<p><a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=git%20imerge&amp;dateRange=all" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=git%20imerge&amp;dateRange=all</a><p>So, can anyone find any interesting discussion about this tool?<p>If you&#x27;d prefer reading rather than listening to the talk, here&#x27;s an article which covers some of the same concepts:<p><a href="https:&#x2F;&#x2F;wilsonmar.github.io&#x2F;git-imerge&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wilsonmar.github.io&#x2F;git-imerge&#x2F;</a><p>The crux of it is that the tool does an efficient pairwise merge of all commits from the donor branch onto master. It can also be configured to run the test suite to detect conflicts.<p>Then you resolve conflicts in pairs of commits, which is only a small amount of work. The histories of your individual resolutions are preserved, so you can pause and resume the task.