Your payment feature is halfway built when an urgent login bug appears before the next demo. You need the fix picked up without disturbing the unfinished payment work.

The work could be handled by your developer, AI coding agents, or a combination of both. Either way, you need to understand how the tasks stay separate and what is ready to release.

Git worktrees can help when those tasks use the same development machine. Let’s follow the payment feature and login fix to see what changes, what remains shared, and what still needs checking before release.

First, picture the working space

Your product’s code is stored in a repository: the project’s files and recorded history. Changes are made in a working folder on a development machine. A developer can edit those files directly, or an AI agent can edit them while carrying out a task.

Think of that folder as a desk with the payment work spread across it. To use that same folder for the login fix, the unfinished payment changes need to be preserved while the right version of the project is brought out. Two agents editing the same folder can also mix their unfinished changes.

Git already has ways to set work aside. The question is whether the two tasks need separate places to stay open instead of repeatedly clearing the same desk.

A branch keeps a separate line of recorded changes for a task. Creating another branch does not, by itself, create another working folder on the computer. That is the gap a worktree fills.

One project history, separate places to work

A Git worktree is another local folder connected to the same repository. Each folder can keep a different branch open, with its own unfinished edits.

The payment task stays in app-payments/, while the login fix opens in app-login-fix/. The fix can be inspected or edited without replacing the payment files in the other folder. A developer can move between the folders, or separate agents can be assigned to them. The unfinished payment work stays in place.

The desks are separate, but they belong to the same project. The team can bring the recorded changes together later. Worktrees do not automatically copy one task’s new code into the other.

Cimulink / A closer lookFollow the changes

Keep the payment work. Pick up the login fix.

Follow the payment task and login fix into separate workspaces, whether developers or AI agents handle them.

Shared Git history
Payment featureapp/
Payment changes unfinished
Login fix arrives needs a place to work
One folder · switching needs care
Urgent login fixapp-login-fix/
Login changes separate task
Login-fix branch · own files
↘Can the fix start without disturbing payments?↙
1 / 4
The login fix interrupts payments

Payment edits occupy the working folder. They need to be preserved before that folder switches to the login fix; another agent editing here could also mix the tasks.

Worktrees keep local tasks available separately. Your team still needs to review changes and check the customer flow before release. Databases, credentials, and running services may remain shared.
Read the full explanation
  1. The login fix interrupts payments. Payment edits occupy the working folder. They need to be preserved before that folder switches to the login fix; another agent editing here could also mix the tasks.
  2. Open a separate worktree. Payments stay in one folder while the login-fix branch opens in another. A developer can move between them, or agents can use separate assigned folders.
  3. Keep the tasks separate. The unfinished payment files stay in place while login is edited and reviewed separately. Both folders share project history, but do not automatically receive each other’s new changes.
  4. Check the intended release. When the features are brought together, ask to see a customer sign in and complete a test payment. Separate folders cannot establish that this journey works.

This is useful when one developer needs to move between tasks, or when several coding agents run on the same machine. Each agent can work in its assigned folder rather than sharing another task’s unfinished files.

If five developers already use their own computers and copies of the project, they already have separate working folders. Worktrees may still help an individual developer, but they are not what makes those five people able to work in parallel.

What this looks like during the workday

In the example screen below, look at the folder list on the left. Payments and the login fix have separate places to work. Payment edits can remain unfinished while the login change is inspected elsewhere.

Fictional development screen showing separate payment and login-fix workspaces on the left, payment code in the middle, and an assistant proposing a login change on the right.
The payment feature stays open while the login fix has its own workspace.

You do not need to read the code in this image. The practical question is: “Can the login fix be picked up without disturbing the unfinished payment files?”

A worktree can make that easier. It does not decide whether the login fix is correct or ready to release.

Why separate work can still fail together

Suppose the login fix passes its tests. Meanwhile, the payment feature changes how the app checks whether a customer is signed in. Each change could look reasonable on its own. Once combined, the customer still needs to sign in and complete a payment.

That is a different question from whether the tasks kept their files separate. Worktrees help organize local work. Reviews and tests help assess what the changes actually do.

Here are the other terms you may hear as the change moves toward release:

  • A pull request is the proposed change your team can review before combining it with the main project.
  • CI checks are automated tests or validations. A passing result only covers the conditions those checks exercise.
  • Staging is a test version of the product where the team can demonstrate the customer flow before a production release. Its usefulness depends on how well it represents the relevant production setup.
Cimulink / From task to release

Separate work still needs a shared check.

  1. Proposed changeWhat is included?
  2. Review + testsWhat was checked?
  3. Combined flowSign in → test payment
  4. Release decisionApprove or hold
A working folder is where a change is made. Review, relevant checks, and a demonstration of the intended customer flow support the decision to release it.

For this example, ask to see a customer sign in and complete a test payment with the intended changes together. If login works alone and payment works alone, but the combined journey has not been checked, there is still a release question to answer.

Also ask what remains shared between the workspaces. Separate folders can still use the same test database, compete for the same server port, or access the same credentials. Those resources need deliberate configuration, whether a developer or an agent uses the workspace. A worktree is not an access-control boundary.

Match the delay to the right improvement

If the team says delivery is blocked, ask where the waiting happens. The answer determines whether worktrees are relevant.

What you noticeWhat may helpWhat you still need to see
An urgent fix interrupts unfinished work on one machineSeparate worktrees for the two tasksThe login fix can proceed while the unfinished payment files stay intact
A proposed change includes unrelated workFocused task branches and clear ownershipA change the reviewer can assess on its own
Reviewed features fail when combinedChecks of the integrated customer journeyThe intended flow working with the changes together
Tasks are marked done, but nobody can say what is readyClear review and release ownershipWhat is approved, what is blocked, and who decides what ships

Worktrees are most useful when the friction is in the local workspace. They do not resolve an unclear requirement or move a pull request out of a reviewer’s waiting list. More workspaces alone are not evidence of faster delivery.

Your five-minute delivery check

You do not need to inspect every line of code to ask for a clear handoff. Follow one change through these questions:

  1. What should work, and who owns it? For the login fix, agree on the expected action: “A customer can sign in and continue to checkout.” If password reset is part of the reported problem, include that path too.
  2. Where is the proposed change? Ask for the pull request and who is reviewing it. That connects the status update to something the team can inspect.
  3. What was checked? Ask which behavior the tests covered and whether they ran on the version being proposed for release.
  4. Can you see the complete customer flow? Ask for the login-to-payment demonstration in staging, with the intended changes together.
  5. What happens next? Establish what is ready, what is blocked, who approves release, and how the team would recover if it fails.

Also ask who or what can edit each workspace, access its services, or deploy a change. If agents are involved, confirm their permissions explicitly. Separating files does not automatically limit authority.

You can put the main request in one sentence:

“Can you show me the proposed change, explain what the checks covered, and demonstrate the customer flow we intend to release?”

Try it on one interruption

Pick two tasks on the same development machine: an unfinished feature and an urgent fix. Ask your developer, or the person overseeing the agents, to keep each on its own branch and worktree where useful. Have them show that the fix can proceed without disturbing the unfinished files.

Then follow the fix through review, relevant checks, and the integrated staging demonstration. Keep the release decision explicit: fixing login should not quietly bring the unfinished payment feature into the demo.

Look at what changed in the work. Did switching tasks stop blocking progress? Did review become easier to follow? Or is the real delay still an unresolved requirement, a waiting review, or a failing combined flow? Keep the practice if it addresses the problem you actually have.

You can now separate two useful questions: can the tasks stay separate, and can your team show that the intended release works together? Worktrees help with the first. Part 3 follows the second, as reviewed changes meet a moving main branch.

Sources and further reading