website v3
This commit is contained in:
parent
2a3f249c78
commit
9a0c184515
@ -454,9 +454,9 @@ async function main() {
|
|||||||
|
|
||||||
execFileSync("git", ["commit", "-m", message], { stdio: "inherit" });
|
execFileSync("git", ["commit", "-m", message], { stdio: "inherit" });
|
||||||
try {
|
try {
|
||||||
execFileSync("git", ["push"], { stdio: "inherit" });
|
execFileSync("git", ["push", "origin", "main"], { stdio: "inherit" });
|
||||||
} catch {
|
} catch {
|
||||||
console.error("\npush failed — commit is local. if this branch has no upstream yet:\n git push -u origin HEAD");
|
console.error("\npush to origin/main failed — commit is local. if your local branch isn't named `main`:\n git branch -m main");
|
||||||
throw new Error("push");
|
throw new Error("push");
|
||||||
}
|
}
|
||||||
console.log("\ncommitted (comment-stripped) and pushed ✓");
|
console.log("\ncommitted (comment-stripped) and pushed ✓");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user