Files
gerrit/快速修复命令.txt

27 lines
601 B
Plaintext
Raw Normal View History

2025-12-22 17:12:39 +08:00
# 快速修复并上传 - 复制粘贴执行
# 在 Git Bash 中执行以下命令:
cd /d/zhini/zhini_im
# 1. 提交所有更改
git add .
git commit -m "Update code before push to Gerrit"
# 2. 删除旧的远程仓库
git remote remove gerrit
# 3. 添加 HTTP 远程仓库(推荐,不需要 SSH
git remote add gerrit http://101.43.95.130:8080/zhini_im
# 4. 切换到主分支
git checkout -b master 2>/dev/null || git checkout master
# 5. 推送代码
git push gerrit HEAD:refs/heads/master
# 如果提示需要用户名密码:
# 用户名: admin
# 密码: 留空(直接回车)