liyongli 2 年之前
父节点
当前提交
6a68b2296f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      saveGit.js

+ 1 - 0
saveGit.js

@@ -7,6 +7,7 @@ const { execSync } = require("child_process");
    */
   function execFun() {
     try {
+      execSync("git pull");
       execSync("git add .");
       execSync('git commit -m "提交"');
       execSync("git push");