mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 05:55:42 -05:00
951 B
951 B
| title |
|---|
| quartz restore |
The restore command is a safety mechanism that allows you to recover your content folder from a local cache.
When to Use
You should use restore if:
- A
quartz upgradefailed and corrupted your content. - You accidentally deleted files in your content folder.
- You encountered complex merge conflicts that you want to undo.
How it Works
Quartz maintains a hidden cache of your content folder. Every time you run certain commands, Quartz ensures that a backup of your Markdown files exists. The restore command simply copies these files back into your main content directory.
npx quartz restore
Example Workflow
If an update fails and leaves your project in a broken state:
- Restore: Run
npx quartz restoreto bring back your content. - Clean: Use Git to reset any other broken code files.
- Retry: Attempt the update again or manually apply the changes you need.