← ClaudeAtlas

chinese-git-workflowlisted

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。
xjxj71/ai-token-usage-statistics · ★ 0 · AI & Automation · score 64
Install: claude install-skill xjxj71/ai-token-usage-statistics
# 国内 Git 工作流规范 ## 概述 国内团队用 Git 经常踩的坑:GitHub 访问不稳定、CI/CD 方案照搬国外水土不服、commit message 中英混杂没有规范。本技能提供一套**完整适配国内平台和团队习惯的 Git 工作流**。 **核心原则:** 工作流服务于团队效率,不是为了流程而流程。选适合团队规模的,别硬套大厂方案。 ## 国内 Git 平台适配 ### 平台对比 | 特性 | Gitee | Coding.net | 极狐 GitLab | CNB | GitHub | |------|-------|------------|-------------|-----|--------| | 国内访问 | 快 | 快 | 快 | 快 | 不稳定 | | 免费私有仓库 | 有 | 有 | 有 | 有 | 有 | | CI/CD | Gitee Go | Coding CI | 内置 GitLab CI | 内置(.cnb.yml) | GitHub Actions | | 代码审查 | PR | MR | MR | MR | PR | | 制品库 | 有限 | 完整 | 完整 | 完整 | Packages | | 适合场景 | 开源/小团队 | 中大型团队 | 企业私有化 | 云原生 / Docker 流水线 | 国际项目 | ### Gitee 特有配置 ```bash # 设置 Gitee 远程仓库 git remote add origin https://gitee.com/<org>/<repo>.git # Gitee 的 SSH 配置 # ~/.ssh/config Host gitee.com HostName gitee.com User git IdentityFile ~/.ssh/gitee_rsa PreferredAuthentications publickey # 同时推送到 Gitee 和 GitHub(镜像同步) git remote set-url --add --push origin https://gitee.com/<org>/<repo>.git git remote set-url --add --push origin https://github.com/<org>/<repo>.git ``` ### Coding.net 特有配置 ```bash # Coding 的仓库地址格式 git remote add origin https://e.coding.net/<team>/<project>/<repo>.git # Coding 支持的 SSH 地址 git remote add origin git@e.coding.net:<team>/<project>/<repo>.git ``` ### 极狐 GitLab 特有配置 ```bash # 极狐 GitLab 私有化部署常见地址格式 git remote add origin https://jihulab.com/<group>/<repo>.git # 或者企业内部部署 git remote add origin https://gitlab.yourcompany.com/<group>/<repo>.git ``` ### CNB(Cloud Native Build)特有配置 ```bash # CNB 仓库地址(仅支