╔══════════════════════════════════════════════════════════════╗
║ ║
║ 🇨🇳 GitHub 中文完全指南 ║
║ ║
║ Git 小白 → GitHub 入门 → Actions 自动化 → 开源贡献 ║
║ ║
║ 100+ 篇教程 · 30 个实战练习 · 30 万字 · 完全免费 ║
║ ║
╚══════════════════════════════════════════════════════════════╝
面向中文开发者的 GitHub 完全指南:从 Git/GitHub 入门,到 Actions、AI、DevOps、开源协作,包含 100+ 篇教程与 30 个实战练习。
⭐ 如果这个项目帮助了你,欢迎 Star 支持!
| 技能领域 | 你将掌握 |
|---|---|
| Git 基础 | 版本控制、分支管理、合并冲突、撤销操作 |
| GitHub 核心 | 仓库管理、Issue、Pull Request、Code Review |
| 自动化 | GitHub Actions CI/CD、Docker 部署、自动测试 |
| AI / ML | GitHub Copilot、Models API、机器学习工作流 |
| DevOps | Kubernetes、Terraform、云原生部署 |
| 开源协作 | Fork 工作流、开源协议、社区运营、技术写作 |
| 团队协作 | 分支策略、权限管理、企业治理、项目管理 |
| 中国开发者专区 | 国内加速、镜像配置、国内平台对比 |
不知道从哪看起?按这 6 步走,从零到会用 GitHub。
| 步骤 | 学什么 | 教程链接 |
|---|---|---|
| 1 | Git 是什么?为什么要用版本控制? | 开始学习 |
| 2 | GitHub 是什么?它能做什么? | 开始学习 |
| 3 | 安装 Git 并注册 GitHub 账号 | 开始学习 |
| 4 | 创建你的第一个仓库 | 开始学习 |
| 5 | 上传你的第一个项目 | 开始学习 |
| 6 | 学会 Pull Request 协作 | 开始学习 |
📘 需要更完整的学习路线? → 看 🎯 新手学习路线图
- 创建和管理仓库
- README 与文档
- Issue 问题追踪
- Pull Request 协作
- Code Review 代码审查
- GitHub Actions 自动化
- GitHub Pages 静态网站
- GitHub Projects 项目管理
- GitHub Copilot 介绍
- GitHub Copilot 进阶功能
- GitHub Copilot Extensions 开发
- GitHub Discussions 介绍
- GitHub Packages 介绍
- GitHub Codespaces 介绍
- GitHub Mobile 介绍
- GitHub Sponsors 介绍
- GitHub Marketplace
- GitHub Rulesets 介绍
- GitHub Models AI/ML
- Git 可视化工具介绍
- GitHub 安全最佳实践
- GitHub Advanced Security
- 供应链安全(SLSA/SBOM)
- GitHub API 使用指南
- GitHub REST/GraphQL API 实战
- GitHub Actions 高级用法
- Docker + GitHub Actions 容器化
- DevOps 实战
- GitHub + Azure DevOps 集成
- 数据库 CI/CD 工作流
- Feature Flags 功能开关
- GitHub Enterprise 企业版功能
- GitHub App 开发指南
- GitHub 企业治理
- GitHub 团队协作规范
- GitHub 项目管理
- Monorepo 管理
- GitHub Code Search 高级搜索
- 开源项目商业化运营
- GitHub Copilot 企业培训
- GitHub 性能优化
- GitHub 开源指南
- GitHub 认证考试
- GitHub Copilot 完全指南
- GitHub 上的机器学习工作流
- 前端开发者的 GitHub 工作流
- 后端开发者的 GitHub CI/CD 指南
- Kubernetes + GitHub Actions 实战
- Terraform IaC + GitHub 实践
- 开源协议完全指南
- GitHub 技术写作指南
- 移动端开发者的 GitHub 指南
- 微服务架构的 GitHub 管理
- Git 内部机制深度解析
- Git 性能优化完全指南
- GitHub Copilot Workspace 与 AI Agent
- GitHub 开源项目管理完全指南
- 练习 1:创建你的第一个仓库
- 练习 2:分支与合并练习
- 练习 3:Pull Request 工作流
- 练习 4:修复 Merge Conflict
- 练习 5:使用 GitHub Pages 部署网站
- 练习 6:参与开源项目
- 练习 7:使用 GitHub Actions
- 练习 8:设置 GitHub Discussions
- 练习 9:Git Stash 实战
- 练习 10:Interactive Rebase 实战
- 练习 11:GitHub CLI 深入使用
- 练习 12:CI/CD 流水线实战
- 练习 13:Docker 部署实战
- 练习 14:安全扫描实战
- 练习 15:发布管理实战
- 练习 16:Monorepo 管理实战
- 练习 17:国内环境配置实战
- 练习 18:GitHub 企业配置实战
- 练习 19:GitHub Actions 复用工作流
- 练习 20:GitHub Projects 看板管理
- 练习 21:GitHub Copilot 入门实战
- 练习 22:配置 Dependabot 自动依赖更新
- 练习 23:使用 GitHub Codespaces 开发
- 练习 24:创建 Issue 表单和 PR 模板
- 练习 25:Git Submodules 实战
- 练习 26:创建可复用 GitHub Actions 工作流
- 练习 27:使用 GitHub Models 测试 AI 模型
- 练习 28:配置 GitHub 安全扫描
- 练习 29:Git LFS 大文件管理实战
- 练习 30:Terraform + GitHub Actions 基础设施自动化
- 练习 31:GitHub Copilot 高级使用
- 练习 32:GitHub Actions 矩阵策略
- 练习 33:GitHub API 集成
- 练习 34:GitHub 安全最佳实践
- 练习 35:GitHub 团队协作
- 常用命令速查表
- Git 别名配置
- 常见问题解答
- 推荐学习资源
- Git 与 GitHub 术语表
- GitHub 快捷键指南
- Git 可视化指南(图解)
- 常见错误排查指南
- Issue/PR 模板指南
- Git Submodules 使用指南
- GitHub 速查表
| 📚 教程 | 🧪 练习 | 📝 中文字数 | 📁 总文件 |
|---|---|---|---|
| 115+ 篇 | 35 个 | 31 万+ | 145+ 个 |
# 使用 HTTPS(推荐国内用户)
git clone https://github.com/wangzi5151/github-complete-guide.git
# 使用 SSH
git clone git@github.com:wangzi5151/github-complete-guide.git
# 使用 GitHub CLI
gh repo clone wangzi5151/github-complete-guide
# 国内加速克隆(如果上述方式较慢)
git clone https://ghproxy.com/https://github.com/wangzi5151/github-complete-guide.git欢迎贡献!请查看 贡献指南 了解如何参与。
本项目采用 MIT 许可证,欢迎自由使用和分享。
如果你有任何问题或建议,请在 Issues 中提出。
⭐ 如果这个项目对你有帮助,欢迎 Star 支持!
╔══════════════════════════════════════════════════════════════╗
║ ║
║ 🇺🇸 GitHub Complete Guide (English) ║
║ ║
║ Git Beginner → GitHub Basics → Actions Automation → Open Source ║
║ ║
║ 100+ Tutorials · 30 Hands-on Exercises · 300K+ Words · Free ║
║ ║
╚══════════════════════════════════════════════════════════════╝
A comprehensive GitHub guide for developers: from Git/GitHub basics, to Actions, AI, DevOps, and Open Source collaboration. Includes 100+ tutorials and 30 hands-on exercises.
⭐ If this project helps you, please Star to support!
| Skill Area | What You'll Master |
|---|---|
| Git Basics | Version control, Branch management, Merge conflicts, Undo operations |
| GitHub Core | Repository management, Issues, Pull Requests, Code Review |
| Automation | GitHub Actions CI/CD, Docker deployment, Automated testing |
| AI / ML | GitHub Copilot, Models API, Machine learning workflows |
| DevOps | Kubernetes, Terraform, Cloud-native deployment |
| Open Source | Fork workflow, Open source licenses, Community management, Technical writing |
| Team Collaboration | Branch strategies, Permission management, Enterprise governance, Project management |
Don't know where to begin? Follow these 6 steps to go from zero to GitHub.
| Step | What to Learn | Tutorial Link |
|---|---|---|
| 1 | What is Git? Why use version control? | Start Learning |
| 2 | What is GitHub? What can it do? | Start Learning |
| 3 | Install Git and register GitHub account | Start Learning |
| 4 | Create your first repository | Start Learning |
| 5 | Upload your first project | Start Learning |
| 6 | Learn Pull Request collaboration | Start Learning |
📘 Need a more complete learning path? → See 🎯 Beginner Learning Roadmap
- What is GitHub?
- Install and Configure Git
- Register GitHub Account
- Configure SSH Keys
- Basic Git Configuration
- How Git Works
- Create and Clone Repositories
- Stage and Commit
- View History and Diff
- Branch Operations
- Merge and Rebase
- Resolve Conflicts
- Undo Operations
- Create and Manage Repositories
- README and Documentation
- Issue Tracking
- Pull Request Collaboration
- Code Review
- GitHub Actions Automation
- GitHub Pages Static Sites
- GitHub Projects Management
- Fork and Open Source Contribution
- Team Collaboration Best Practices
- Git Workflows
- Tags and Releases
- GitHub CLI
- Git LFS Large File Management
- Security and Permissions
- GitHub API and Webhooks
- GitHub Copilot Introduction
- GitHub Copilot Advanced
- GitHub Copilot Extensions Development
- GitHub Discussions
- GitHub Packages
- GitHub Codespaces
- GitHub Mobile
- GitHub Sponsors
- GitHub Marketplace
- GitHub Rulesets
- GitHub Models AI/ML
- Git Visualization Tools
- GitHub Security Best Practices
- GitHub Advanced Security
- Supply Chain Security (SLSA/SBOM)
- GitHub API Guide
- GitHub REST/GraphQL API in Practice
- GitHub Actions Advanced
- Docker + GitHub Actions Containerization
- DevOps in Practice
- GitHub + Azure DevOps Integration
- Database CI/CD Workflows
- Feature Flags
- GitHub Enterprise Features
- GitHub App Development Guide
- GitHub Enterprise Governance
- GitHub Team Collaboration Standards
- GitHub Project Management
- Monorepo Management
- GitHub Code Search
- Open Source Business Models
- GitHub Copilot Enterprise Training
- GitHub Performance Optimization
- GitHub Open Source Guide
- GitHub Certification
- Project Case Studies
- Large Open Source Project Case Studies
- Bilingual README Guide
- GitHub Education Resources
- GitHub Copilot Complete Guide
- Machine Learning Workflows on GitHub
- Frontend Developer's GitHub Workflow
- Backend Developer's GitHub CI/CD Guide
- Kubernetes + GitHub Actions in Practice
- Terraform IaC + GitHub Practice
- Open Source Licenses Complete Guide
- Technical Writing Guide for GitHub
- Mobile Developer's GitHub Guide
- Microservices GitHub Management
- Git Internals Deep Dive
- Git Performance Optimization Guide
- GitHub Copilot Workspace and AI Agent
- Open Source Project Management Guide
- Exercise 1: Create Your First Repository
- Exercise 2: Branch and Merge Practice
- Exercise 3: Pull Request Workflow
- Exercise 4: Fix Merge Conflict
- Exercise 5: Deploy Website with GitHub Pages
- Exercise 6: Contribute to Open Source
- Exercise 7: Use GitHub Actions
- Exercise 8: Set Up GitHub Discussions
- Exercise 9: Git Stash in Practice
- Exercise 10: Interactive Rebase in Practice
- Exercise 11: GitHub CLI Deep Dive
- Exercise 12: CI/CD Pipeline in Practice
- Exercise 13: Docker Deployment in Practice
- Exercise 14: Security Scanning in Practice
- Exercise 15: Release Management in Practice
- Exercise 16: Monorepo Management in Practice
- Exercise 17: China Environment Setup
- Exercise 18: GitHub Enterprise Setup
- Exercise 19: GitHub Actions Reusable Workflows
- Exercise 20: GitHub Projects Board Management
- Exercise 21: GitHub Copilot Basics
- Exercise 22: Configure Dependabot Auto Updates
- Exercise 23: Develop with GitHub Codespaces
- Exercise 24: Create Issue Forms and PR Templates
- Exercise 25: Git Submodules in Practice
- Exercise 26: Create Reusable GitHub Actions Workflows
- Exercise 27: Test AI Models with GitHub Models
- Exercise 28: Configure GitHub Security Scanning
- Exercise 29: Git LFS Large File Management
- Exercise 30: Terraform + GitHub Actions Infrastructure Automation
- Exercise 31: GitHub Copilot Advanced Usage
- Exercise 32: GitHub Actions Matrix Strategy
- Exercise 33: GitHub API Integration
- Exercise 34: GitHub Security Best Practices
- Exercise 35: GitHub Team Collaboration
- Common Commands Cheat Sheet
- Git Alias Configuration
- FAQ
- Recommended Learning Resources
- Git and GitHub Glossary
- GitHub Keyboard Shortcuts
- Git Visualization Guide
- Troubleshooting Guide
- Issue/PR Template Guide
- Git Submodules Guide
- GitHub Cheat Sheet
| 📚 Tutorials | 🧪 Exercises | 📝 Word Count | 📁 Total Files |
|---|---|---|---|
| 115+ | 35 | 310K+ | 145+ |
# Using HTTPS (Recommended)
git clone https://github.com/wangzi5151/github-complete-guide.git
# Using SSH
git clone git@github.com:wangzi5151/github-complete-guide.git
# Using GitHub CLI
gh repo clone wangzi5151/github-complete-guideContributions are welcome! Please see the Contributing Guide for how to participate.
This project is licensed under the MIT License. Feel free to use and share.
If you have any questions or suggestions, please open an Issue.
⭐ If this project helps you, please Star to support!