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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Is there still a need for non-linear Git histories in product development?

1 点作者 baptou12超过 1 年前
I've been thinking about the Git development workflow lately and the trend towards linear histories, where every pull request is fast-forwarded and based on a branch rebased onto the main branch. It seems like a clean and streamlined approach, but are there still valid use cases for allowing non-linear Git histories?

1 comment

BobbyTables2超过 1 年前
For code reviews that take days&#x2F;weeks, it is useful to not rebase the branch to main&#x2F;master on every update… But I certainly see no point in merging it in when it based on an ancient ancestor…<p>I’ve heard some like the non-fast-forward approach because it preserves the historical state of the tree when a developer was writing something… Often the same people who don’t squash commits and merge 100 commit branches where 99 are a complete mess.<p>But to me, what matters is the actual change to main&#x2F;master at the time the thing is merged — that is what affects the team.<p>If some people want to keep unsquashed, unrebased branches for archival purposes? Fine! But rebase before merging to main&#x2F;master!
评论 #38557088 未加载