chore: initial project setup
This commit is contained in:
29
init-git.bat
Normal file
29
init-git.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@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 git@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
|
||||
Reference in New Issue
Block a user