chinese-git-workflow

Solid

适配国内 Git 平台和团��习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

AI & Automation 5,232 stars 500 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 国内 Git 工作流规范 ## 概述 国内团队用 Git 经常踩的坑:GitHub 访问不稳定、CI/CD 方案照搬国外水土不服、commit message 中英混杂没有规范。本技能提供一套**完整适配国内平台和团队习惯的 Git 工作流**。 **核心原则:** 工作流服务于团队效率,不是为了流程而流程。选适合团队规模的,别硬套大厂方案。 ## 国内 Git 平台适配 ### 平台对比 | 特性 | Gitee | Coding.net | 极狐 GitLab | GitHub | |------|-------|------------|-------------|--------| | 国内访问 | 快 | 快 | 快 | 不稳定 | | 免费私有仓库 | 有 | 有 | 有 | 有 | | CI/CD | Gitee Go | Coding CI | 内置 GitLab CI | GitHub Actions | | 代码审查 | PR | MR | MR | PR | | 制品库 | 有限 | 完整 | 完整 | Packages | | 适合场景 | 开源/小团队 | 中大型团队 | 企业私有化 | 国际项目 | ### 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 ``` ## 工作流选择 ### 方案一:主干开发(Trunk-Based Development) **适合:** 小团队(2-8 人)、迭代速度快、有完善的自动化测试。 ``` main ──●──●──●──●──●──●──●...

Details

Author
jnMetaCode
Repository
jnMetaCode/superpowers-zh
Created
2 months ago
Last Updated
1 weeks ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category