General entrance to learning› Git 8 hours
Git 8-Hour Interactive Crash Course
For senior cloud engineers · Core foundations → Branching and collaboration → Hosting platforms (Azure Repos / GitHub / CodeCommit / GitLab) → Git in CI/CD → Branch strategy and repository architecture → In-depth debugging and history recovery → Production questions and interviews (optional) · 8 lessons × 1 hour
Git 2.56Git 3.0 previewGitHubAzure ReposAWS CodeCommitGitLabVerification date 2026-11-15
Learning route:
← Bash 8 hours
① Core foundation
② Branching, merging and team collaboration
③ Moving towards hosting platforms (Azure Repos and GitHub)
④ Moving towards hosting platforms (AWS CodeCommit and GitLab)
⑤ Git in CI/CD and automation
⑥ Branch strategy and repository architecture practice
⑦ In-depth debugging and historical recovery
⑧ 50 examples of production problems + 50 interview questions (optional)
Next door: Docker 8 hours →
8 lessons
Hour 1core foundationVersion control and Git architecture, object model: blob, tree, commit, ref, three areas: workspace, staging area, repository, commit, view history and differences, undo: restore, reset, revert, branch entry and HEAD, remote repository: clone, fetch, pull, push, configuration, .gitignore and troubleshooting entryGit 2.56 · Object Model
Hour 2Branching, merging, and team collaborationMerge: fast forward and three-way merge, conflict resolution and rerere, rebase and interactive rebase, cherry-pick, stash and worktree, remote branches and tracking relationships, Pull Request workflow and code review, commit specifications, tags and releases, collaboration readiness review and common conflict drillsmerge · rebase · conflict · PR
Hour 3Going to hosting platforms (Azure Repos and GitHub)Hosting platform selection and Git service architecture, certification: SSH, HTTPS, Git Credential Manager, Azure Repos: repository, branch strategy and PR, GitHub: repository, rule set and PR, CODEOWNERS, required review and status check, fork, template repository and Inner Source, platform side debugging practice, migration, cost and self-testAzure DevOps · GitHub · GCM
Hour 4Going to a managed platform (AWS CodeCommit and GitLab)Git service positioning of AWS and GitLab, CodeCommit: certification and git-remote-codecommit, CodeCommit: branch protection, approval rules and notifications, CodeConnections: connecting GitHub/GitLab to AWS, GitLab: projects, protected branches and Merge Request, GitLab: approval rules, CODEOWNERS and push rules, cross-platform mirroring and debugging practice, migration, cost and self-testAWS CodeCommit · CodeConnections · GitLab
Hour 5Git in CI/CD and AutomationGit-driven automation panorama, Git hooks and pre-commit framework, checkout in CI: shallow cloning, fetch-depth and sparse checkout, commit and tag signing: GPG, SSH, gitsign, confidentiality leak prevention and scanning, agreed-upon commit, semantic version and automatic release, Monorepo path filtering and change detection, summary of the first five hours, self-test and cleanuphooks · pre-commit · signature · semantic release
Hour 6Branch strategy and repository architecture practiceComparison of branch strategies: trunk development, GitHub Flow, GitFlow, release branches, hotfixes and cherry-pick rollbacks, Monorepo and Polyrepo trade-offs, submodules and subtrees, large repositories: LFS, partial clones, sparse checkouts, scalar, repository maintenance: gc, maintenance, commit-graph, repository migration: SVN/TFVC to Git, splitting and merging repositories, comprehensive architecture reviewtrunk-based · GitFlow · monorepo · LFS
Hour 7In-depth debugging and history recoveryTroubleshooting methodology and GIT_TRACE, reflog and retrieving lost commits, git bisect positioning regression, rewriting history: filter-repo clearing secrets and large files, repository damage: fsck, object recovery, line breaks, case, permissions and encoding issues, performance diagnosis and network/protocol issues, comprehensive fault blind boxreflog · bisect · filter-repo · fsck
Hour 8 · Optional50 production problem examples + 50 interview questionsCommit, undo and history, branch, merge and rebase, remote, certification and platform, large repository, performance, CI and security, basic concepts and internal principles, branch, merge and history, collaboration process and platform, scale, security and scenario designGit 2.56 · GitHub · Azure Repos · GitLab
The card shows your learning progress for each lesson, saved in this browser. Progress is not displayed if the browser blocks local storage.
Full outline and time allocation (7 × 1-hour + optional 8th hour)
| Lesson/Module | time | Topic |
|---|---|---|
| Hour 1 · Core Basics (open) | ||
| 1-0 | before class | Environment preparation (installation and configuration of Git) |
| 1-1 | 00–06 | Version control and Git architecture |
| 1-2 | 06–14 | Object model: blob, tree, commit, ref |
| 1-3 | 14–21 | Three areas: working tree, staging area, and repository |
| 1-4 | 21–29 | Commit, view history and differences |
| 1-5 | 29–37 | Undo: restore, reset, revert |
| 1-6 | 37–44 | Getting started with branches and HEAD |
| 1-7 | 44–52 | Remote repository: clone, fetch, pull, push |
| 1-8 | 52–60 | Getting Started with Configuration, .gitignore, and Troubleshooting |
| Hour 2 · Branching, merging, and team collaboration (open) | ||
| 2-0 | before class | Connection and Warm-up (Practice Repository) |
| 2-1 | 00–08 | Merger: Fast Forward and Three-Party Merger |
| 2-2 | 08–15 | Conflict resolution and rerere |
| 2-3 | 15–24 | Rebase rebase and interactive rebase |
| 2-4 | 24–31 | cherry-pick, stash and worktree |
| 2-5 | 31–38 | Remote branches and tracking relationships |
| 2-6 | 38–46 | Pull Request Workflow and Code Review |
| 2-7 | 46–53 | Commit specs, tags and releases |
| 2-8 | 53–60 | Collaboration readiness review and common conflict drills |
| Hour 3 · Going to hosting platforms (Azure Repos vs. GitHub) (open) | ||
| 3-0 | before class | Warm-up and platform account preparation |
| 3-1 | 00–05 | Hosting platform selection and Git service architecture |
| 3-2 | 05–13 | Authentication: SSH, HTTPS, Git Credential Manager |
| 3-3 | 13–22 | Azure Repos: Repositories, Branch Strategies and PRs |
| 3-4 | 22–31 | GitHub: Repositories, Rule Sets, and PRs |
| 3-5 | 31–38 | CODEOWNERS, required reviews and status checks |
| 3-6 | 38–45 | fork, template repository and Inner Source |
| 3-7 | 45–54 | Practical troubleshooting on the platform side |
| 3-8 | 54–60 | Migration, costs and self-testing |
| Hour 4 · Going to a managed platform (AWS CodeCommit vs. GitLab) (open) | ||
| 4-0 | before class | Warm-up and platform account preparation |
| 4-1 | 00–05 | Git service positioning between AWS and GitLab |
| 4-2 | 05–13 | CodeCommit: Authentication with git-remote-codecommit |
| 4-3 | 13–21 | CodeCommit: branch protection, approval rules and notifications |
| 4-4 | 21–28 | CodeConnections: Connecting GitHub/GitLab to AWS |
| 4-5 | 28–37 | GitLab: Projects, Protected Branches, and Merge Requests |
| 4-6 | 37–44 | GitLab: Approval Rules, CODEOWNERS, and Push Rules |
| 4-7 | 44–54 | Cross-platform mirroring and troubleshooting practice |
| 4-8 | 54–60 | Migration, costs and self-testing |
| Hour 5 · Git in CI/CD and Automation (open) | ||
| 5-0 | before class | Preparation: Sample repository and pipeline environment |
| 5-1 | 00–06 | Git-driven automation panorama |
| 5-2 | 06–14 | Git hooks and pre-commit framework |
| 5-3 | 14–22 | Checkout in CI: shallow cloning, fetch-depth and sparse checkout |
| 5-4 | 22–31 | Commit and tag signing: GPG, SSH, gitsign |
| 5-5 | 31–39 | Confidential leakage prevention and scanning |
| 5-6 | 39–47 | Conventional commit, semantic versioning and automatic publishing |
| 5-7 | 47–54 | Monorepo path filtering and change detection |
| 5-8 | 54–60 | Summary, self-test and cleanup of the first five hours |
| Hour 6 · Branch strategy and repository architecture practice (open) | ||
| 6-0 | before class | Preparation: Multi-Team Sample Project |
| 6-1 | 00–08 | Comparison of branch strategies: trunk development, GitHub Flow, GitFlow |
| 6-2 | 08–15 | Release branches, hotfixes, and cherry-pick rollbacks |
| 6-3 | 15–22 | Monorepo vs. Polyrepo trade-off |
| 6-4 | 22–29 | Submodules and subtrees |
| 6-5 | 29–38 | Large repository: LFS, partial clone, sparse checkout, scalar |
| 6-6 | 38–45 | Repository maintenance: gc, maintenance, commit-graph |
| 6-7 | 45–53 | Repository migration: SVN/TFVC to Git, splitting and merging repositories |
| 6-8 | 53–60 | Comprehensive Architecture Review |
| Hour 7 · In-depth troubleshooting and historical recovery (open) | ||
| 7-0 | before class | Preparation: Fault Injection Repository |
| 7-1 | 00–06 | Troubleshooting Methodology and GIT_TRACE |
| 7-2 | 06–14 | reflog and retrieving lost commits |
| 7-3 | 14–21 | git bisect positioning regression |
| 7-4 | 21–30 | Rewrite history: filter-repo clears secrets and large files |
| 7-5 | 30–37 | Repository damage: fsck, object recovery |
| 7-6 | 37–45 | Line breaks, case, permissions and encoding issues |
| 7-7 | 45–52 | Performance diagnostics and network/protocol issues |
| 7-8 | 52–60 | Comprehensive fault blind box |
| Hour 8 (optional) · 50 production problems + 50 interview questions (open) | ||
| 8-0 | before class | Instructions for use and fault experimental environment |
| 8-1 | 00–08 | A · Commit, Undo, and History (Questions 1–12) |
| 8-2 | 08–16 | A · Branching, merging, and rebasing (13–25) |
| 8-3 | 16–24 | A · Remoteness, Authentication and Platforms (26–38) |
| 8-4 | 24–30 | A · Big Repositories, Performance, CI, and Security (39–50) |
| 8-5 | 30–37 | B · Basic concepts and internal principles (Interviews 1–13) |
| 8-6 | 37–44 | B · Branching, merging, and history (14–25) |
| 8-7 | 44–52 | B · Collaboration processes and platforms (26–38) |
| 8-8 | 52–60 | B · Scaling, Security and Scenario Design (39–50) |
Lesson format
Hours 1–7: Principles (What / Why / How / When) · Diagrams · Animations · Commands · Experiments · Production Examples · Troubleshooting · Quiz · Chinese Voice · Video. Hour 8: The production problem part is a quick overview · Detailed explanation of the problem · Diagram · Animation · Reproduction experiment · Test · Voice · Video; the interview part is a quick overview · Detailed explanation of interview questions · Diagram · Mock interview · Scenario questions · Test · Voice · Video. Each lesson ends with a cheat sheet, comprehensive lab, final quiz, and source and edition notes.
Lab environment
- Ubuntu 24.04 (Azure VM or WSL) / macOS / Windows (Git for Windows); hour 1 Module 0 explains how to install the latest Git
- Practice Repository: Available in hour 1
bootstrap-git-lab.sh, in~/git-lab/myappGenerate an exercise repository with multiple branches, tags and "dangerous history", which can be reused in subsequent lessons - Hours 3 and 4: The free tiers of Azure Repos, GitHub, AWS CodeCommit, and GitLab can complete most experiments; specify permissions and cleanup (delete test repository, revoke PAT and SSH keys)
- Hours 3 and 4 will only cover Git-related capabilities on the platform; the details of the pipeline will be left to subsequent GitHub/Azure DevOps/GitLab platform courses.
Animation and narration: Animations use inline SVG and JavaScript and work offline. Narration uses the browser’s built-in Web Speech API with Chinese (zh-CN) voices.
Limitations:The experimental commands are written according to official documents and have not been executed one by one in the real environment. The ID, IP, and time in the expected output are sample values; the generation environment cannot produce videos or MP3s, and the video page only lists verified public videos with storyboard scripts; details that cannot be verified are noted on the "Source and Version Notes" page of each lesson.
Next door:Docker 8-hour interactive crash course: Using the same myapp sample project, go from container basics to cloud production operation and maintenance.
Next door: Docker 8 hours →