ai-c/git-push.sh
2026-02-02 18:21:32 +08:00

34 lines
711 B
Bash

#!/bin/bash
# Git 提交脚本
cd "$(dirname "$0")"
echo "========================"
echo "Git 提交脚本"
echo "========================"
echo ""
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] 推送到远程仓库..."
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 "========================"