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