From 1cd47ab5ba6200cb3f9921b173061e8c1bdcc215 Mon Sep 17 00:00:00 2001 From: byeaxj Date: Thu, 9 May 2024 15:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Commit=20by:=20byeaxj=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 Changes: M .obsidian/workspace.json M githubpush.py ?? push.bat --- .obsidian/workspace.json | 2 +- githubpush.py | 2 +- push.bat | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 push.bat diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index e5bf0d4d..b1dc8f18 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -165,6 +165,7 @@ }, "active": "da9ca8a590533596", "lastOpenFiles": [ + "push.bat", "githubpush.py", "githubpush.bat", "githubpush copy.sh", @@ -175,7 +176,6 @@ "node_modules/gitalk/node_modules/date-fns/fp/lastDayOfQuarter/index.d.ts", "node_modules/gitalk/node_modules/date-fns/fp/lastDayOfQuarter", "node_modules/gitalk/node_modules/date-fns/fp/isWithinInterval/package.json", - "node_modules/gitalk/node_modules/date-fns/fp/isWithinInterval/index.js.flow", "beiklive/Note_obsidian/01.插件推荐.md", "beiklive/02.记录/02.折腾记录/00.obsidian.md", "beiklive/02.记录/01.工具使用/01.Git.md", diff --git a/githubpush.py b/githubpush.py index 022d249d..2439b471 100644 --- a/githubpush.py +++ b/githubpush.py @@ -36,7 +36,7 @@ def main(): subprocess.run(['git', 'commit', '-m', final_commit_message]) # 推送到远程仓库 - # subprocess.run(['git', 'push']) + subprocess.run(['git', 'push']) print("提交完成!") except subprocess.CalledProcessError as e: diff --git a/push.bat b/push.bat new file mode 100644 index 00000000..d46db357 --- /dev/null +++ b/push.bat @@ -0,0 +1 @@ +python githubpush.py \ No newline at end of file