Files
svn-manager/init-git.bat

30 lines
601 B
Batchfile

@echo off
chcp 65001 >nul
echo 开始初始化 Git 仓库...
if exist .git (
echo Git 仓库已存在,跳过初始化
) else (
git init
echo Git 仓库初始化完成
)
echo 添加文件到暂存区...
git add .
echo 提交更改...
git commit -m "chore: initial project setup"
echo 添加远程仓库...
git remote remove origin 2>nul
git remote add origin https://gitee.com/liujingaiyuanjiao/svn-manager.git
echo 推送到 Gitee...
git branch -M master 2>nul
git push -u origin master
echo.
echo 完成!
echo 仓库地址: https://gitee.com/liujingaiyuanjiao/svn-manager
pause