Files
AnimeTV-Backend/scripts/git-multipush.example.ts
2025-07-02 10:11:45 +07:00

14 lines
338 B
TypeScript

import { execSync } from "child_process";
const remotes = ["origin"];
for (const remote of remotes) {
console.log(`Pushing to ${remote}...`);
try {
execSync(`git push ${remote} main`, { stdio: "inherit" });
} catch (err) {
console.error(`❌ Failed to push to ${remote}`);
}
}
console.log("✅ All remotes processed.");