Skip to content
AltZTraining for Every AltZ Venture
What Is Version Control
beginner9 min

Side Lines, Merges and Conflicts

Try an idea without touching the version that works, bring it back when it's good, and what happens when two changes collide.

Until now the history has been one straight line. That works until you want to try something risky: a rewrite of the pricing section, a new structure for the whole proposal, or an AI assistant's attempt at a big change. If the experiment goes badly, you don't want it mixed into the version everyone relies on.

A side line keeps the working version safe

A version control system lets you start a side line from any save. New saves go onto the side line, and the main line stays exactly where it was. Git calls a side line a branch, and the main line is usually named main.

mainside line: try new pricingmain keeps goingmerge

Three things to notice:

  1. The side line starts from a save. It begins with everything the main line had at that moment, so it's a complete copy of the project to experiment on.
  2. Both lines can keep moving. You can switch back to main at any time and find it exactly as you left it. Someone else can keep saving there while you experiment.
  3. A side line costs almost nothing. In git, making one takes a second and no extra copy of your files, so you can make one for every idea, however small.

Merge brings it back, or you walk away

When the experiment works, you merge the side line into the main line. The system combines the changes from both sides and records a new save that has two parents: the latest save on main, and the latest save on the side line. The history keeps both stories.

When the experiment doesn't work, you leave the side line alone, or delete it. Nothing on main ever changed, so there is nothing to undo.

That second outcome is the real gift. Trying an idea stops being a risk you have to weigh and becomes something you can just do.

A conflict is a question, not an error

Most merges finish on their own. If the side line changed the pricing section and main changed the timeline, the system takes both changes and is done.

A conflict happens when both lines changed the same lines in different ways. Say main changed the payment terms while your side line changed the price on the same line:

On main:        Price: $12,000, due 30 days after signing.
On side line:   Price: $10,800, due on signing.

The system won't guess which one is right. It stops, shows you both, and asks a person to decide. You might keep one, keep the other, or write a line that combines them:

Resolved:       Price: $10,800, due 30 days after signing.

Then you save the result, and the merge is complete.

Side lines and AI assistants

Side lines fit AI work especially well:

  • Put each AI task on its own side line. If the result is good, merge it. If it isn't, delete the side line, and your working version never saw it.
  • Run experiments side by side. Ask for two different approaches on two side lines, compare them, and keep the better one.
  • Review before you merge. The merge is the natural moment to read the diff of everything the assistant changed, before it reaches the version that matters.

Try it

Act out a merge with Claude, Gemini, or ChatGPT. Write a short paragraph, then make two different edits of it, as if two people changed it on two side lines. Paste all three with this prompt:

Act as a merge in a version control system. Below are an original paragraph
and two edited versions made separately on two side lines.

Combine the two edits into one version. Where they changed different parts,
keep both changes. Where they changed the same sentence in different ways,
don't choose: show me both versions of that sentence as a conflict and ask me
which to keep, or how to combine them.

Original:
[paste the original]

Side line A:
[paste the first edit]

Side line B:
[paste the second edit]

Notice which changes merged on their own, and which ones needed you.

Next

So far everything has happened in one place. The last idea is about working with other people: where the history lives, and why everyone holding a full copy changes what it means to lose a server.