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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Git merge vs. rebase, when and how?

5 点作者 eshlomo超过 5 年前

1 comment

picod超过 5 年前
merge<p>- when commits of both branch need to preserve<p>- when additional zero file “merged commit” is ok<p>- when chronology order of commits need to maintain<p>rebase<p>- when commit of both need to preserve<p>- when zero file “merged commit” is not desired<p>- when rebased branch commits need to stay on top of other branch<p>- when change of commit id is ok
评论 #21665965 未加载