- output = await internals.exec(`cd ${blogDirectory} && git commit --allow-empty -m blog-sync-up-${Date.now()}`);
- internals.debuglog(output.stderr);
-
- output = await internals.exec(`cd ${blogDirectory} && git push ${remote} main --force`);
- internals.debuglog(output.stderr);
+ await internals.exec(`cd ${blogDirectory} && git init -b main`);
+ await internals.exec(`cd ${blogDirectory} && git add .`);
+ await internals.exec(`cd ${blogDirectory} && git commit --allow-empty -m blog-sync-up-${Date.now()}`);
+ await internals.exec(`cd ${blogDirectory} && git push ${remote} main --force`);