fix: update remote repository URL to use HTTPS in init scripts
This commit is contained in:
@@ -17,7 +17,7 @@ git commit -m "chore: initial project setup"
|
|||||||
|
|
||||||
echo 添加远程仓库...
|
echo 添加远程仓库...
|
||||||
git remote remove origin 2>nul
|
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...
|
echo 推送到 Gitee...
|
||||||
git branch -M master 2>nul
|
git branch -M master 2>nul
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ $remote = git remote get-url origin 2>$null
|
|||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
# 添加远程仓库
|
# 添加远程仓库
|
||||||
Write-Host "添加远程仓库..." -ForegroundColor Green
|
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
|
Write-Host "远程仓库已添加" -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Host "远程仓库已配置: $remote" -ForegroundColor Yellow
|
Write-Host "远程仓库已配置: $remote" -ForegroundColor Yellow
|
||||||
|
|||||||
Reference in New Issue
Block a user