Command

npx quartz sync

Essentially: just encapsulating some git operations

  • run from the root of the quartz repo (i.e., where package.json is)

Behavior

Default Behavior

  • npx quartz sync: commit → pull → push

Custom Behavior

FlagCommitPullPushUse Case
just npx quartz syncDefault: full sync
--no-pullInitial setup: first push without pulling empty/conflicting remote
--no-pushLocal testing: commit and pull, test before pushing
--no-commitSync existing: pull and push already-committed changes
--no-pull --no-pushLocal save: commit locally without syncing
--no-commit --no-pushFetch only: pull remote changes without committing/pushing
--no-commit --no-pullPush only: push existing commits without pulling/committing