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

推荐订阅源

GbyAI
GbyAI
Martin Fowler
Martin Fowler
I
InfoQ
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
B
Blog
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
V
Visual Studio Blog

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 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 Introducing Graphite Reviewer: your AI code review companion
Introducing frozen branches: A safer way to build on your...
David Bradfo · 2025-09-18 · via Graphite blog

Collaboration is at the heart of modern software development. When multiple engineers work together on a feature or release, it’s common to build on top of each other’s work. But with that flexibility comes risk: accidentally changing a teammate’s branch that is supposed to remain untouched.

With gt version 1.7.0, we’re introducing a new way to collaborate with confidence: frozen branches.

What are frozen branches?

A frozen branch is a branch that stays up to date with remote changes but blocks local edits. This ensures you can safely pull down and build on a coworker’s branch without worrying about accidentally modifying their work.

Think of it as read-only mode for branches. It's perfect for when you want visibility and stability without the risk of stepping on toes.

How it works

  • Automatic freezing with gt get

    When you use gt get to pull down a new branch, it will now be marked as frozen by default. If you’d prefer an editable version, you can pass the --unfrozen flag.

  • Manually freeze or unfreeze

    Use gt freeze and gt unfreeze at any time to toggle a branch’s frozen state.

  • Check branch status

    Not sure if a branch is frozen? Commands like gt info and gt log clearly display the status.

Examples of frozen branches

Get my coworkers branch:

$ gt get 1646

🌲 Fetching branches from remote...

Running git fetch: [========================================] 100% | Done

main is up to date.

🔄 Syncing branches...

Synced add-api-branch (PR

Checked out add-api-branch.

Branch add-api-branch was retrieved in 'frozen' mode, making it uneditable. Use `gt unfreeze` to make it editable.

Check the status:

$ gt info

add-api-branch (frozen)

3 minutes ago

PR

https://app.stg.graphite.dev/github/pr/my-org/my-repo/1646

Last submitted version: v1

Parent: main

commit ea6404a74ddb0d9599cefa4d027d064916a58c9f

Author: My coworker <coworker@company.com>

Date: Wed Sep 3 13:29:49 2025 -0400

Add important API to the codebase

Modification via gt will be blocked:

$ echo hello > world.txt

$ gt modify --all

ERROR: Cannot perform this operation on frozen branch add-api-branch. You

can unfreeze it with gt unfreeze add-api-branch.

Including restack and sync:

$ gt restack

Did not restack branch add-api-branch because it is frozen.

But new branches can be built on top of it:

$ gt create --all --message "new feature using the api"

1 file changed, 1 insertion(+)

create mode 100644 change.txt

$ gt ls

◉ new_feature_using_the_api

◯ add-api-branch (frozen)

◯ main

Remote changes can still be retrieved via gt sync or gt get:

$ gt sync

🌲 Fetching branches from remote...

Running git fetch: [========================================] 100% | Done

main is up to date.

🔄 Syncing branches...

Synced add-api-branch (PR

🥞 Restacking branches...

add-api-branch does not need to be restacked on main.

Restacked new_feature_using_the_api on add-api-branch.

Why this matters

Frozen branches give teams more confidence when stacking work across multiple contributors. With frozen branches, you can:

  • Build faster: Start stacking new changes on a coworker’s branch without hesitation.

  • Avoid mistakes: Protect against accidental edits that can cause merge conflicts or overwrite someone else’s progress.

  • Stay aligned: Always pull the latest updates while keeping the original branch safe.

By making collaboration safer and smoother, frozen branches reduce the friction of shared development workflows.

Get started today

Upgrade to gt version 1.7.0 to start using frozen branches. Try it out the next time you pull down a teammate’s branch, and experience safer, more reliable collaboration.

👉 Run gt get <branch> and see it in action.

Related articles