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