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