Interactive Git Lab
Practice Git in Your Browser — From Basics to Team Workflows
No installation needed — work with real Git repos directly in your browser. 10 interactive labs cover Git basics, branch management, merge conflicts, rebase, and team workflows. Every step has instant validation and visual commit graph feedback.
30-Second Quick Start
Start with a 20-minute lab — make your first git commit right in the browser.
按照提示完成 git init、git add、git commit 操作,观察 Commit Graph 的变化。Start with the "Why Do You Need Git?" concept lab to understand version control before diving in.
What You Will Learn
In this tutorial, you will learn:
- ✓Master Git core concepts: working directory, staging area, and repository
- ✓Use branch, merge, and rebase operations fluently
- ✓Resolve merge conflicts and clean up history independently
- ✓Master stash, reset, cherry-pick, and other advanced techniques
- ✓Understand and practice Git Flow / GitHub Flow team workflows
Chapter Overview
Quick preview by section - jump directly to what interests you.
从生活场景出发理解版本控制的意义:为什么程序员离不开 Git,为什么你现在就该开始用。完全零基础友好,不需要任何编程经验。
- Why Do You Need Git?20 min
- Your First Git Commit20 min
- Oops! How to Undo in Git15 min
- ... 1 more lessons
用平行宇宙的比喻理解 Git 分支——什么是分支、为什么几乎不占空间、怎么创建和切换。从此你可以大胆实验而不怕搞坏主代码。
- Branches: Git's Most Powerful Feature20 min
- Merge: Combining Parallel Universes25 min
- Merge Conflicts: Don't Panic!25 min
理解 Merge 和 Rebase 的区别,学会用 rebase 让提交历史保持一条直线。掌握黄金法则:永远不要 rebase 公共分支。