Files
wecom-ai-assistant/CONNECTION_SUCCESS.md
bujie9527 02ae5855a8
Some checks failed
Build and Deploy / test-backend (push) Has been cancelled
Build and Deploy / build-backend (push) Has been cancelled
Build and Deploy / build-admin (push) Has been cancelled
Deploy to Production / build-backend (push) Has been cancelled
Deploy to Production / deploy (push) Has been cancelled
Add connection success confirmation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-05 21:03:41 +08:00

1.9 KiB

私有仓库连接成功

连接状态

  • Git 仓库连接: 成功
  • 代码推送: 成功
  • 分支跟踪: 已设置

推送结果

branch 'main' set up to track 'private/main'.
To https://git.quanyu360.cn/admin/wecom-ai-assistant.git
 * [new branch]      main -> main

代码已成功推送到私有仓库!

仓库信息

验证

访问以下 URL 确认代码已推送:

仓库主页: https://git.quanyu360.cn/admin/wecom-ai-assistant

应该能看到所有项目文件。

日常使用

推送代码到私有仓库

# 推送到私有仓库(默认)
git push private main

# 或简写(因为已设置跟踪)
git push

推送到 GitHub

git push origin main

推送到两个仓库

git push private main
git push origin main

拉取最新代码

# 从私有仓库拉取
git pull private main

# 或简写
git pull

当前远程仓库配置

  • origin: GitHub 仓库
  • private: 私有仓库(已设置为默认推送目标)

下一步

现在可以:

  1. 继续开发,代码会自动推送到私有仓库
  2. 推送 Docker 镜像到私有 Registry
  3. 配置生产环境使用私有镜像

Docker 镜像推送

如果需要推送 Docker 镜像:

# 登录 Registry
docker login git.quanyu360.cn -u admin -p ye972030

# 构建并推送 Backend
docker build -f deploy/docker/backend.Dockerfile -t git.quanyu360.cn/wecom-ai/wecom-ai-backend:latest .
docker push git.quanyu360.cn/wecom-ai/wecom-ai-backend:latest

# 构建并推送 Admin
docker build -f deploy/docker/admin.Dockerfile -t git.quanyu360.cn/wecom-ai/wecom-ai-admin:latest .
docker push git.quanyu360.cn/wecom-ai/wecom-ai-admin:latest