fix: set upstream in sync handler, cleanup docs around setting up github

This commit is contained in:
Jacky Zhao 2023-12-14 16:48:09 -08:00
parent a464ae5029
commit c35818c336
2 changed files with 6 additions and 2 deletions
quartz/cli

View file

@ -528,7 +528,7 @@ export async function handleSync(argv) {
await popContentFolder(contentFolder)
if (argv.push) {
console.log("Pushing your changes")
const res = spawnSync("git", ["push", "-f", ORIGIN_NAME, QUARTZ_SOURCE_BRANCH], {
const res = spawnSync("git", ["push", "-uf", ORIGIN_NAME, QUARTZ_SOURCE_BRANCH], {
stdio: "inherit",
})
if (res.status !== 0) {