From 610793f276e3f3cdcfe7dbb73030ec307fa1b1d0 Mon Sep 17 00:00:00 2001 From: liu <362165265@qq.com> Date: Tue, 3 Feb 2026 23:26:53 +0800 Subject: [PATCH] fix: update remote repository URL to use HTTPS in init scripts --- init-git.bat | 2 +- init-git.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init-git.bat b/init-git.bat index 8916482..637f5fe 100644 --- a/init-git.bat +++ b/init-git.bat @@ -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 diff --git a/init-git.ps1 b/init-git.ps1 index a528dfa..942dbbd 100644 --- a/init-git.ps1 +++ b/init-git.ps1 @@ -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