First, make sure you have Quartz cloned and setup locally.
Then, create a new repository on GitHub.com. Do not initialize the new repository with README
, license, or gitignore
files.
At the top of your repository on GitHub.com’s Quick Setup page, click the clipboard to copy the remote repository URL.
In your terminal of choice, navigate to the root of your Quartz folder. Then, run the following commands, replacing REMOTE-URL
with the URL you just copied from the previous step.
To verify that you set the remote URL correctly, run the following command.
Then, you can sync the content to upload it to your repository.
Tip
If
npx quartz sync
fails withfatal: --[no-]autostash option is only valid with --rebase
, you may have an outdated version ofgit
. Updatinggit
should fix this issue.