TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

5 pointsby eshlomoover 5 years ago

1 comment

picodover 5 years ago
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 未加载