Sub topic 3
Track your versions
This chapter assumes you have a draft of a creative idea in a text file, can open a terminal, and have Git 2.30 or later installed. You should also know how to save and edit a file. The chapter covers how to record versions, keep a change log, compare versions, decide when to stop, and carry lessons forward.
Track your versions
Git is a version control system: a tool that stores snapshots of your files so you can return to any of them. Each snapshot is a commit. A tag is a permanent name you attach to a commit, such as v1.
git init lighthouse-story
cd lighthouse-story
git add story.md
git commit -m "v1: first complete draft"
git tag v1
# Revise story.md, then save version 2
git add story.md
git commit -m "v2: open with the storm, cut backstory"
git tag v2
# Show exactly what changed between the two versions
git diff v1 v2Keep a change log
A change log is a short record of what changed in each version and why. Commit messages hold the summary, but a log adds the reasoning that Git does not store.
## v2 (from v1)
- Goal: make the opening create tension
- Changed: moved the storm to the first line
- Cut: two paragraphs of backstory
- Why: reader feedback said the opening felt slowCompare versions and choose
Put each version side by side against the goal you set for it. A table makes the comparison concrete.
| Version | Goal | Result | Keep? |
|---|---|---|---|
| v1 | First complete draft | Full story, slow opening | Archive |
| v2 | Create tension early | Stronger opening, weaker ending | Keep, revise ending |
Decide when the work is finished
Stop when the idea meets its goal, further changes only move it sideways, and feedback no longer names a problem you can fix. Tag the final version so it is easy to find.
Reflect and carry lessons forward
Before starting your next project, write down which revisions helped and which wasted time. Keep that note with your change log so the next draft begins with what you learned.
Exercise
You changed a story's opening in v2 and want to compare it with v1. Which command shows the differences, and why is a tag useful here?
Show answer
Run git diff v1 v2. The tags give stable names to the two commits, so you can compare them later without remembering commit hashes.