Sub topic 9
Explore Variations Without Losing Earlier Work
This chapter assumes you already have a first draft and a goal for your next revision pass. It also assumes you can run basic commands in a terminal. If you do not use Git, the ideas still apply to any tool that lets you copy and name files.
Why variations need protection
A revision pass improves one version. A variation tests a different direction. Both involve editing, but the risks differ. If you rewrite your ending and dislike the result, you want the old ending back. If you overwrite the file, it is gone.
The common error is exploring in place. You change the main file, lose track of what you altered, and can no longer compare. The fix is to separate exploring from committing to a direction. You make a safe copy of your work, try the change there, and decide afterward whether to keep it.
Variation, version, and branch
These three terms are easy to mix up.
- A version is a saved, named state of the work that you can return to.
- A variation is an alternative way to do one part of the work, such as a different ending, color palette, or chorus.
- A branch is a separate line of work that holds a variation. The main line stays untouched while you experiment.
A variation lives on a branch. When you finish, you either merge it back into the main line or leave it as a saved alternative.
Decide what you are varying
An unfocused variation produces a different piece, not a comparable one. Before you branch, write down three things:
- The element you will change, such as the opening, the ending, or the main character's motivation.
- The question the variation answers, such as "Is the story stronger if the keeper leaves?"
- The things that stay fixed, so the comparison is fair.
This connects to the previous chapter's habit of giving each revision pass one goal. A variation is a pass whose goal is a question instead of a fix.
Generate real alternatives
Two variations that differ only in wording teach you little. To get alternatives that differ in kind, use the constraints from the earlier chapters.
- Reverse an assumption. If the keeper stays, write the version where the keeper leaves.
- Change the scale. Write the ending in one sentence, then in one page.
- Remove something. Write the scene without dialogue.
- Borrow a form. Tell the same moment as a letter or a log entry.
Aim for two or three variations. More than that makes comparison hard, and you will spend time producing options instead of judging them.
Branch with Git
Git is a version control tool that records snapshots of text files. It works well for writing, scripts, lyrics, and code. Start from a clean, saved main version. The commands below assume the file story.md already exists and that you are inside the repository.
# Confirm your main version is saved
git status
# Create a branch for the variation and switch to it
git switch -c alt-ending
# ...edit story.md, then save the experiment
git add story.md
git commit -m "alt: ending where the keeper leaves"
# Return to the main version
git switch -After git switch -, your file is back to the main version. The experiment is not lost. It is stored on the alt-ending branch.
Name branches by purpose
A branch name should say what the variation tests. Compare these:
| Weak name | Better name | Why |
|---|---|---|
| `test` | `alt-ending-keeper-leaves` | Says what changed |
| `new-version` | `opening-storm-first` | Names the element |
| `try2` | `tone-darker` | States the direction |
Short, descriptive names make a list of branches readable weeks later.
See and compare your branches
List branches with git branch. To see exactly how a variation differs from the main line, compare them directly.
# List all branches; the current one is marked with *
git branch
# Show every difference between main and the variation
git diff main alt-ending
# Show only which files differ
git diff --stat main alt-endingIf your main branch is named master or something else, use that name instead. git branch shows what yours is called.
Work without Git
You do not need Git to protect earlier work. The principle is the same: copy first, then edit the copy.
- Duplicate the file and add the variation's purpose to the name, for example
story_alt-ending.md. - Keep variations in one folder named
variations, away from the main file. - Never edit the original while exploring.
- Write one line in your change log for each copy, stating what it tests.
Tools with built-in version history, such as shared documents and design applications, also work. Check how long they keep history and whether you can name a version. A history with no names makes it hard to find the state you want.
Keep the experiment honest
A variation is easy to start and easy to abandon halfway. Three habits keep the results useful.
- Finish the variation enough to judge it. A half-written alternate ending cannot be compared with a finished one. Complete it to the same rough standard as the main version.
- Record the question and the result. Add an entry to your change log, including variations you rejected. The reason you rejected one is information you will want later.
- Limit the time. Set a fixed amount of time for each variation. This stops exploring from turning into endless drifting.
A log entry for a rejected variation can be short:
## alt-ending (not merged)
- Question: is the story stronger if the keeper leaves?
- Changed: rewrote final three paragraphs
- Result: more surprising, but loses the quiet tone of the opening
- Decision: keep original ending; reuse the image of the empty lamp roomThe last line matters. Even a rejected variation often contains one piece worth moving into the main version.
Bring back what you want
When a variation wins, merge it into the main branch. When only part of it wins, copy that part by hand.
# Merge the whole variation into main
git switch main
git merge alt-endingIf you edited the same lines on both branches, Git reports a conflict and marks both versions in the file. Open the file, choose or combine the text, remove the markers, and commit. Conflicts are not failures. They tell you that two directions disagree, and you now make the choice.
To take only some changes, switch to main and open the variation's file for reference with git show alt-ending:story.md. Then copy the lines you want into your main file and commit that as a new version.
Common errors
| Error | Result | Fix |
|---|---|---|
| Editing the main file while exploring | Original is overwritten | Branch or copy first |
| Changing many elements at once | You cannot tell what helped | Vary one element per branch |
| Creating many variations | Comparison becomes tiring | Limit to two or three |
| Vague branch names | You forget what each tests | Name by purpose |
| Not logging rejected variations | You repeat the same experiment | Log question and result |
| Switching branches with uncommitted changes | Work is lost or mixed | Commit or check `git status` first |
Summary of the workflow
- Save a clean main version.
- Write the element, the question, and the fixed parts.
- Create a branch or copy for each variation.
- Finish each variation to a comparable standard.
- Log the result, including rejected ideas.
- Compare, then merge, copy parts, or keep the variation as a record.
The next step, comparing versions and choosing between them, builds on the records you create here.
Exercise
You are revising a song. You want to test whether a slower tempo improves the chorus, and you also want to try new lyrics in the second verse. A colleague suggests doing both on one branch to save time. What should you do instead, and why?
Show answer
Create two separate branches or copies, one for the slower-tempo chorus and one for the new second-verse lyrics, and name each by purpose (for example chorus-slower and verse2-new-lyrics). If both changes are on one branch, you cannot tell which change improved or harmed the song. Separate variations answer one question each. You can merge both afterward if both work, and you can log each result.
Exercise
You switch to a new branch, rewrite your design brief's introduction, and decide you dislike it. What command returns you to your main version, and is the rewrite lost?
Show answer
Run git switch main (or git switch - to return to the previous branch). The rewrite is not lost if you committed it, because it stays on the variation branch. If you did not commit it, the changes may be at risk, so commit before switching.