roadmap/docs/upgrading.md

20 lines
1.3 KiB
Markdown
Raw Normal View History

2023-08-07 02:52:30 +00:00
---
title: "Upgrading Quartz"
---
> [!note]
2023-08-07 02:54:11 +00:00
> This is specifically a guide for upgrading Quartz 4 version to a more recent update. If you are coming from Quartz 3, check out the [[migrating from Quartz 3|migration guide]] for more info.
2023-08-08 00:34:38 +00:00
2023-08-12 05:47:50 +00:00
To fetch the latest Quartz updates, simply run
2023-08-08 00:34:38 +00:00
2023-08-12 05:47:50 +00:00
```bash
2023-08-18 06:39:15 +00:00
npx quartz update
2023-08-08 00:34:38 +00:00
```
2023-08-12 05:47:50 +00:00
As Quartz uses [git](https://git-scm.com/) under the hood for versioning, updating effectively 'pulls' in the updates from the official Quartz GitHub repository. If you have local changes that might conflict with the updates, you may need to resolve these manually yourself (or, pull manually using `git pull origin upstream`).
2023-08-08 00:34:38 +00:00
> [!hint]
> Quartz will try to cache your content before updating to try and prevent merge conflicts. If you get a conflict mid-merge, you can stop the merge and then run `npx quartz restore` to restore your content from the cache.
2023-08-08 00:34:38 +00:00
If you have the [GitHub desktop app](https://desktop.github.com/), this will automatically open to help you resolve the conflicts. Otherwise, you will need to resolve this in a text editor like VSCode. For more help on resolving conflicts manually, check out the [GitHub guide on resolving merge conflicts](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line#competing-line-change-merge-conflicts).