From 6704cfb4181f7c4756d839bdbaf1b085e2cb2d27 Mon Sep 17 00:00:00 2001 From: shumengya Date: Fri, 17 Apr 2026 22:30:58 +0800 Subject: [PATCH] chore: add push-to-gitea.ps1 for shumengya.top Made-with: Cursor --- scripts/push-to-gitea.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/push-to-gitea.ps1 diff --git a/scripts/push-to-gitea.ps1 b/scripts/push-to-gitea.ps1 new file mode 100644 index 0000000..9831d54 --- /dev/null +++ b/scripts/push-to-gitea.ps1 @@ -0,0 +1,9 @@ +# 在已执行 tea repos create 创建 mengpost 后,关联 https://shumengya.top/shumengya/mengpost 并推送 main +$ErrorActionPreference = "Stop" +$Origin = "https://shumengya.top/shumengya/mengpost.git" +Set-Location (Split-Path -Parent $PSScriptRoot) + +git remote remove origin 2>$null +git remote add origin $Origin +git branch -M main +git push -u origin main