Revisions
SnipCraft records a revision every time you save a snippet, giving you a full history you can review and restore from at any point.
Watch this part of the walkthroughCode Diff and Review at 3:18, opens on YouTubeAutomatic revision history
Every save creates a new revision automatically. There is nothing to configure. Over time you build up a complete history of every version of a snippet's code, letting you see exactly what changed between saves and when.
Revisions are stored alongside the snippet. They do not count toward any snippet limits and do not affect how the active version runs.
Restoring a version
If you need to roll back to an earlier version, the process is straightforward:
- Open the snippet you want to roll back.
- Open its revision history panel.
- Select the version you want and confirm the restore.
Restoring a version copies that version's code into the snippet editor. You can review it before saving, so restoring never overwrites your current code until you explicitly save.
Comparing versions
Opening a revision shows a side-by-side diff between that snapshot and the code currently in the editor. Both versions are visible at once with changes highlighted, so you can see exactly what changed before deciding whether to restore.
Related
See getting started for where revisions fit in the editing flow, and safe mode for recovering a site after a bad save.