惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
人人都是产品经理
人人都是产品经理
月光博客
月光博客
V
V2EX
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
博客园 - 聂微东
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志

Graphite blog

Introducing Code Tours: a new way to review Introducing Cursor Cloud Agents in Graphite Building the future of software development with Cursor Reimagining the PR Page: Designing for speed and focus Graphite changelog [11-20-2025] Graphite changelog [11-04-2025] Graphite changelog [10-16-2025] The future of engineering is collaborative (and already here) Meet Graphite Agent: the next evolution of AI code review Introducing frozen branches: A safer way to build on your teammates’ work Graphite changelog [09-17-2025] How we sped up code search for Graphite Chat Introducing Graphite Chat AI is writing code—here's why it also needs to review that code How I got Claude to write code I could actually ship How we built the first stack-aware merge queue (and why it matters) How we organize our monorepo to ship fast Graphite brings stacking to Tower Code review tooling: Should you build or buy? Making AI code review available to everyone Introducing: The new Graphite + Linear integration Graphite raises $52M and launches Diamond to reimagine code review for the age of AI Why AI will never replace human code review How stacked PRs unblock distributed development teams Graphite is going to Developer Week 2025 Beating the end of year code freeze How Graphite’s eng team ships code remarkably fast Why we chose Anthropic's Claude to power Graphite Reviewer AI code generation will remain fragmented How we redesigned Graphite's landing page in-house
Graphite will now automatically rebase your partially-mer...
Stephen Pink · 2024-05-07 · via Graphite blog

Like yesterday’s announcement of collaborative stacks, today’s launch has been one of our most highly-requested features. Starting soon, Graphite will automatically rebase your stacked PRs after you begin merging them — so you don’t have to.

Taking the pain out of partial stack merges

Until now, partially merging part of a stack of pull requests on Graphite was a disjointed experience. Let’s say you wanted to merge the first 2 PRs in a stack of 4: you’d go to the 2nd PR on the Graphite dashboard, click “Merge 2 PRs,” and let Graphite handle the merging.

However, you’d then end up in a state where the 2 remaining PRs in your stack would need to be rebased onto main to show the correct code diffs on GitHub and to unblock further merging. Previously, the easiest fix for this was to hop back over to your terminal and run gt sync && gt submit.

This not only added an extra step to remember but also led to inaccurate code diffs being displayed on GitHub until you ran the commands, as well as potential issues with codeowners and GitHub Actions workflows.

Keeping your stacks up to date, so you don’t have to

So many of you have asked for a more seamless experience around partially merging stacks, and that’s what we’re shipping today. Graphite now automatically rebases partially merged stacks for you - so you never have to remember to run gt sync && gt submit to rebase the upstack PRs. Your teammates will always see the correct diffs on Graphite or GitHub, and you won’t have to worry about the wrong reviewers being assigned to your PR.

Automatic rebasing also works seamlessly with your local branches - just run gt sync as you’d normally do before re-starting development and Graphite will pull in the rebased branches from remote and apply the changes locally.

Our goal in shipping this was to fit it seamlessly into the workflow you already know. There’s no new commands to learn or tools to install - it just works.

How it works under the hood

When you partially merge a stack of pull requests, Graphite now runs a job that automatically rebases the remote branches corresponding to the PRs “upstack” of the one(s) you merged. This means there is never a moment where the new base of the stack points to a branch or pull request that no longer exists, so there’s no possibility of seeing an incorrect code diff.

The local development updates that make this possible build on yesterday’s announcement of shared stacks - the Graphite CLI detects when Graphite has made updates to the remote version of a local branch, and gt sync pulls in and applies those updates locally, almost like you’re collaborating on your stack with a Graphite bot.

How to get started

We've rolled out this change to all orgs. Graphite will now automatically handle rebasing for your partially merged stacks.

Related articles