- Sam’s Returns policy has one branch, main, with one saved version.
- Sam makes the return window clearer. Save as New Version stores the change as version 2.
- Version lists every saved version with its date and author. Earlier content stays available.
- A price change needs a review first. Sam changes return shipping to 59 kr.
- Save as New Branch keeps the change apart from main. Sam names it price-review.
- The Branch picker shows price-review. Main still has the 49 kr price.
- Compare shows the difference between this branch and the latest version on main.
- Only the price line differs, 49 kr on main and 59 kr on price-review.
- When 59 kr is final, Merge copies the branch’s latest content into main as a new version.
- Merge replaces main’s content rather than combining text, so check the comparison first.
- Confirm Merge. Main now has version 3 with the 59 kr price.
- Workflow runs, including tests, read the latest saved version on the main branch.
- Draft changes on a branch, and jobs keep using main until you merge.