### Keeping Track of Changes

TailStatic includes a powerful versioning system that tracks every change you make to your site's source files. This allows you to review your history, see exactly what was changed, and revert to a previous version if something goes wrong.

### How it Works

TailStatic uses a local [Git repository](https://git-scm.com/docs) for each site within the [Persistent Storage Layout](/docs/persistent-storage-layout). When you save files or publish a change, TailStatic automatically creates a "commit" in the background.

### Viewing History

In the site dashboard, you can access the **Versions** tab to see a list of all recent changes. This is available for all text editable files in the site.

### Comparing Versions (Diffs)

TailStatic provides a "Diff" view that shows exactly what lines were added, removed, or changed in a file. This is useful for auditing changes or understanding why a layout might have broken after an edit.

### Restoring and Undoing

* **Restore a File:** You can revert a single file to any previous version in its history.
* **Undo Changes:** If you have made several changes but haven't published them yet, you can "Discard Pending Changes" to return the site to its last published state.
* **Site-Wide Restore:** In extreme cases, you can restore an entire site to a specific point in time.

### Pending Changes

When you edit files in the dashboard, they are saved as "Pending Changes." These changes are tracked by the versioning system but are not yet part of the live site until you publish them. You should always check preview before finalizing these changes.

