chore: add push-to-gitea.ps1 for shumengya.top
Made-with: Cursor
This commit is contained in:
9
scripts/push-to-gitea.ps1
Normal file
9
scripts/push-to-gitea.ps1
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user