35 lines
703 B
Batchfile
35 lines
703 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
echo ========================
|
|
echo Git 提交脚本
|
|
echo ========================
|
|
echo.
|
|
|
|
cd /d "%~dp0"
|
|
|
|
echo [1/5] 添加所有更改...
|
|
git add -A
|
|
|
|
echo.
|
|
echo [2/5] 提交更改...
|
|
git commit -m "feat: 更新小程序代码 - 2026-02-02"
|
|
|
|
echo.
|
|
echo [3/5] 添加 tag...
|
|
git tag -a v1.0.0 -m "Version 1.0.0 - 2026-02-02"
|
|
|
|
echo.
|
|
echo [4/5] 推送到远程仓库...
|
|
echo 请输入密码: zy12345678
|
|
git push https://zhiyun:zy12345678@git.maimanji.com/adminzy/ai-c.git master --force
|
|
|
|
echo.
|
|
echo [5/5] 推送 tag...
|
|
git push https://zhiyun:zy12345678@git.maimanji.com/adminzy/ai-c.git v1.0.0
|
|
|
|
echo.
|
|
echo ========================
|
|
echo 完成!
|
|
echo ========================
|
|
pause
|