- 1 Why the Pantheon workflow makes you move code one way
- 2 The situation that tests the Pantheon workflow
- 3 Two situations, and which one you handle first
- 4 The procedure, step by step
- 5 The checks, and when to stop
- 6 What the restrictive feeling of the Pantheon workflow buys you
- 7 Who should be doing this
- 8 Sources
Why the Pantheon workflow makes you move code one way
Here’s the thing about the Pantheon workflow that stumps a lot of people. And it’s actually a really good thing. On most managed WordPress hosts, you update a live site by clicking Update in the admin, or by pushing a staging copy over the top of it. Both approaches work on an ordinary day. The click runs on the live server and leaves no record of the files it touched. The staging push overwrites Live with whatever happened to be on staging that day, including the changes you forgot were there. When something breaks, the host offers you last night’s backup, and you start comparing.
The Pantheon workflow (Pantheon.io) runs every site through three environments, Dev, Test, and Live, and code moves one way: up from Dev to Test to Live. Code is writable in Dev and locked in Test and Live. Content moves the other way, down from Live. Every code change is a Git commit with an author, a date, and a message, and Pantheon documents the process as “designed around making sure that the Live environment is always stable and never at risk due to code updates.”

That one-way flow is why Pantheon feels restrictive the first time you use it: editing a file on Live is off the table, Test takes everything on Dev or nothing, and the deploy order never changes. Those limits give you a site where you can prove what changed, when, and who changed it, and that proof is what this post is about.
The situation that tests the Pantheon workflow
This comes up on any site where more than one person touches the code. Your maintenance updates are due: WordPress core, a plugin with a security fix, and a theme update. At the same time, the client, their designer, or a contractor has been building something on Dev. Their work is sitting there as commits, or as files on the Dev server that they haven’t committed yet. They haven’t approved it for Live, and you can’t reach them before the updates have to go out.
The Pantheon workflow deploys everything on Dev together. The dashboard shows “2 commits ready to deploy from Dev to Test,” and one of those commits carries the client’s name. If you deploy, their unfinished work goes to Live with your updates.
On a host with a one-click staging push, you’d be in the same spot with less to go on: a staging copy with changes on it and no reliable list of the files those changes touched. On Pantheon, Git tells you which commits are theirs, which files they changed, and where Live stands, and you can work around their commits without rewriting them.
Two situations, and which one you handle first
The client’s work is either committed to Git or still uncommitted on the Dev server, and the dashboard tells you which.
| Committed | Uncommitted | |
|---|---|---|
| What the dashboard tells you | The Test tab says commits are ready to deploy, with the client’s name on them | Dev is in SFTP mode, and the Code panel lists changed files waiting for a commit |
| Where the work lives | In Git, on Dev | On the Dev server’s disk only |
| What can go wrong | Unapproved work reaches Live | Pantheon workflow discards the files, and no copy exists anywhere |
| What you do | Revert, update, restore | Commit the files first, then treat them as committed work |
Uncommitted work comes first, because it’s the only copy. Pantheon’s SFTP documentation says that switching Dev from SFTP to Git “will discard all uncommitted file changes,” and that uncommitted changes “are not saved in backups, and are not included in deployments.” Your Dev backup won’t protect them, and Autopilot refuses to start while they exist: Pantheon’s troubleshooting page says it “will fail if there are uncommitted SFTP code changes in the Dev environment.”
Both situations can be true on the same site at the same time. You commit the loose files, and then you have one situation instead of two.
The procedure, step by step
The idea is simple once you see it. You add one commit that undoes the client’s commits, deploy the updates, then add one commit that brings their work back. You never delete or rewrite a commit, so their work stays in Git the whole time, and the history shows every move.
- Back up Dev. In the dashboard, open the Dev tab, choose Backups, create a new backup, and wait for it to finish.
- Find out where things stand. Check Dev’s connection mode, list any uncommitted files, and read the commit log on Dev and on Live. The newest commit on Live is your reference point. Every commit on Dev above it belongs to the client.
- If the work is uncommitted, commit it. List the changed files and download your own copy of each one. Commit them on Dev with a message that names the client and says why you made the commit, because the commit carries your name and the client will read it. Confirm the server reports no remaining changes, then switch Dev to Git mode.
- Save a second copy on a branch. Point a branch at the newest client commit and push it. With the commits in history, the branch, and the backup, three copies of their work now exist.
- Revert the client’s commits in one commit. In the message, say which commits you reverted, why, and where the copy is. Before you push, diff Dev against Live. The diff prints nothing, which proves Dev now matches Live. If it prints a file, stop.
- Run the updates. Autopilot or your usual steps, then deploy to Test and Live the way you always do. Leave the branch alone.
- Restore the client’s work. Pull, then revert your revert commit. Diff the client’s files against the branch: nothing. Diff Dev against the new Live: only the client’s files. Push. Write the restore message to the client by name, with the dates, what happened, and the statement that their files are unchanged.
- Put Dev back the way they left it. If Dev was in SFTP mode when you started, switch it back. The Test tab now says one commit is ready to deploy, and that commit holds all of the client’s work. Keep the branch until their work reaches Live.
The whole job takes about an hour of attention spread across the update window, most of it reading output and comparing it with what you expected.
The checks, and when to stop
Each step above ends with a check that has one acceptable result. A diff prints nothing, or a status command comes back empty, and that is the only result you accept. When a check prints anything else, you stop and find out why before you go on, because the client’s work is safe only as long as all three copies exist.
Some conditions mean you stop before you change anything:
- Test has commits that Live doesn’t. The procedure assumes Test and Live match.
- The client’s commits are mixed in with commits from your own team that need to go to Live.
- One of the client’s commits is a merge commit.
- The client changed plugin, parent theme, or WordPress core files that the updates will also change. The client may have updated a plugin through the WordPress admin, and your updates will collide with it.
- The site is white-label and you haven’t agreed with the agency on the git name and email your commits should carry. Commit authors and messages show in the Pantheon dashboard, and the end client reads them.
Others mean you stop in the middle:
- The revert reports a conflict.
- A pull brings in a commit you didn’t make, which means the client pushed new work while you were working.
- Autopilot fails or reports a visual regression.
And a short list you never do on a site where the work is yours to protect: force push, reset, or rebase on master; delete the branch or the backup before the client’s work reaches Live; switch Dev from SFTP to Git while uncommitted files exist; deploy from Dev to Test while the client’s commits are active; clone the Live database onto Dev while their work is there, since they may have content on Dev that their code depends on.
If you stop partway, Dev stays in a safe state. You note which step you finished and leave the branch, the backup, and the revert commit in place.
We run this with Claude Code and a written version of this procedure. The first part analyzes and changes nothing: it reports the connection mode, lists every uncommitted file, lists every commit on Dev that isn’t on Live, checks each stop condition, and shows the commands and commit messages it plans to use. It waits for you to say go before the second part touches the site, and it waits again before the restore. A procedure that can’t prove an action is safe stops and asks, and that is the behavior we want from a tool working on a client’s site.
What the restrictive feeling of the Pantheon workflow buys you
At the end of this procedure, you hold a commit log the client can read from top to bottom, a restore message addressed to them with the dates and the commit IDs, a branch with a second copy of their work, a backup with a third, and two diffs that printed nothing. The updates are on Live, their work is back on Dev the way they left it, and every step is in the history for the next person to read.
That’s what the one-way flow gives you. Pantheon made you commit the loose files, took the whole of Dev or none of it, and kept every commit, and each of those limits turned into a check you could run.
On a host with a one-click staging push, the same update cycle ends with a live site that has the updates and the client’s half-finished work on it, a staging copy you’ve overwritten, and a backup from the night before as your only way back. You can recover from that, and you’ve probably done it. It costs a day and a difficult phone call, and it leaves no record that would stop it from happening again next month.
The workflow feels restrictive because it refuses to let you lose track of what changed.
Who should be doing this
If you run an agency with sites on Pantheon, your team can learn this procedure from the steps above and run it under a written checklist with a second person reviewing the diffs. The checklist is the part that takes time to write, and the stop conditions are the part that takes experience to recognize.
If you’d rather not carry that, we do this work for agencies as their production partner and for individual site owners under our WordPress care plans. Your client keeps building on Dev. Our team runs the updates around their work, writes the commit messages they’ll read, and sends you the log. You find out it happened from the restore message, and the site’s history records the whole thing.
Tell us about the site, and we will reply within one business day with what the first update cycle would involve.
Sources
- Pantheon WebOps Workflow, Pantheon workflow documentation. Code moves up from Dev to Test to Live, content moves down, Test and Live are locked, and the process is “designed around making sure that the Live environment is always stable and never at risk due to code updates.”
- SFTP Development, Pantheon workflow documentation. Switching from SFTP to Git “will discard all uncommitted file changes”; uncommitted changes “are not saved in backups, and are not included in deployments.”
- Troubleshoot Autopilot, Pantheon workflow documentation. Autopilot “will fail if there are uncommitted SFTP code changes in the Dev environment.”