Your site is now running at http://localhost:8080. The dev server watches for file changes and reloads automatically.
At this point you can start writing content in the content/ folder. When you’re ready to publish, continue below to push your site to GitHub and deploy it.
Setting Up Your GitHub Repository
To publish your site, you’ll need your own GitHub repository.
Create the Repository
Create a new repository on GitHub.com. Do not initialize it with a README, license, or .gitignore — the Quartz clone already has these.
Copy the repository URL from the Quick Setup page:
Connect Your Local Clone
Point your local Quartz at your new repository:
# Check current remotesgit remote -v# Point origin to your repositorygit remote set-url origin REMOTE-URL# Add the official Quartz repo as upstream (for future upgrades)git remote add upstream https://github.com/jackyzha0/quartz.git
Push Your Site
npx quartz sync --no-pull
This commits your content and pushes everything to your repository. For subsequent updates, just run:
npx quartz sync
Flags and options
For full help options, you can run npx quartz sync --help.
Most of these have sensible defaults but you can override them if you have a custom setup:
-d or --directory: the content folder. This is normally just content
-v or --verbose: print out extra logging information
--commit or --no-commit: whether to make a git commit for your changes
--push or --no-push: whether to push updates to your GitHub fork of Quartz
--pull or --no-pull: whether to try and pull in any updates from your GitHub fork (i.e. from other devices) before pushing