fix: update remote repository URL to use HTTPS in init scripts

This commit is contained in:
liu
2026-02-03 23:26:53 +08:00
parent 28b517da40
commit 610793f276
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ git commit -m "chore: initial project setup"
echo 添加远程仓库...
git remote remove origin 2>nul
git remote add origin git@gitee.com:liujingaiyuanjiao/svn-manager.git
git remote add origin https://gitee.com/liujingaiyuanjiao/svn-manager.git
echo 推送到 Gitee...
git branch -M master 2>nul

View File

@@ -31,7 +31,7 @@ $remote = git remote get-url origin 2>$null
if ($LASTEXITCODE -ne 0) {
# 添加远程仓库
Write-Host "添加远程仓库..." -ForegroundColor Green
git remote add origin git@gitee.com:liujingaiyuanjiao/svn-manager.git
git remote add origin https://gitee.com/liujingaiyuanjiao/svn-manager.git
Write-Host "远程仓库已添加" -ForegroundColor Green
} else {
Write-Host "远程仓库已配置: $remote" -ForegroundColor Yellow