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.

Tell HN: Linear history is broken when using GitHub PRs

2 pointsby spirover 1 year ago
Have you ever noticed how GitHub has no fast-forward pull request merges?<p>Did you know it&#x27;s impossible to use GitHub PRs without rebasing your dev branch on main after every merged PR?<p>Please, if anybody knows somebody at GitHub that can help address this glaring limitation (15 years into GitHub&#x27;s life), please help. My linear history people and I are desperate.

1 comment

akerl_over 1 year ago
It doesn&#x27;t sound like your problem is linear history, so much as it&#x27;s &quot;having multiple long-lived branches&quot;.<p>But also, you should be fine as long as you use merge commits. The thing that will mess up your history is if you let it rebase commits, since then you&#x27;ll end up with diverged history.<p><a href="https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;pull-requests&#x2F;collaborating-with-pull-requests&#x2F;incorporating-changes-from-a-pull-request&#x2F;merging-a-pull-request#merging-a-pull-request" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;pull-requests&#x2F;collaborating-with-...</a>
评论 #38097772 未加载