GitTree Learn
Git tutorials: learn, visualize and practice
Understand what changes before you click. Each lesson explains one idea, shows the Git command and the GitTree steps, and ends with a result you can check yourself.
Start here
New to Git, or not sure where your history lives? Begin with the first lesson: what Git, GitTree and a hosting provider each do.
Distinguish Git, GitTree and your hosting provider
Learning paths
Paths are suggestions, not gates: open any published lesson directly. Lessons are added path by path after they are recorded and reviewed.
Foundations
What Git records, how GitTree shows it, and your first deliberate commit.
5 lessons
Everyday work
Diffs, partial staging, branches, remotes and syncing without surprises.
12 lessons
- Read the comparison before judging a change
- Commit the selected hunk, not the whole file
- Read history without moving HEAD
- Create a feature branch and retire only the disposable ref
- Connect a remote without confusing it with an upstream
- Fetch a teammate's change without replacing your page
- Pull with fast-forward, merge or rebase
- Push commits and publish a branch
- Tags, annotations and release naming
- Ignore files and clean untracked work safely
- Correct a local commit message or content
- Follow a file's history and line authorship
History and integration
Merge, rebase, conflicts and choosing a workflow from the graph.
6 lessons
Recovery
Stash, reset, revert, reflog and GitTree Undo: inspect first, then repair.
9 lessons
- Resolve merge and rebase conflicts
- Continue, skip or abort an active operation
- Stash work and resume it safely
- Reset: soft, mixed and hard
- Revert a change in shared history
- Find a lost commit with reflog
- GitTree Undo, Redo and recovery snapshots
- Keep detached work and start an orphan history
- Recover mistakes after pushing
More paths open as their lessons are recorded and reviewed.
Lesson videos
Each recorded lesson has its own video page: the player first, then a short summary and the link to the full article.
- Distinguish Git, GitTree and your hosting provider · 4 min video
- Install Git and preview a safe commit identity · 5 min video
- Predict what your next commit will contain · 5 min video
- Create your course repository, then distinguish clone and open · 6 min video
- Stage the intended snapshot and make your first commit · 7 min video
- Read the comparison before judging a change · 5 min video
- Commit the selected hunk, not the whole file · 4 min video
- Read history without moving HEAD · 4 min video
- Create a feature branch and retire only the disposable ref · 3 min video
- Connect a remote without confusing it with an upstream · 6 min video
- Fetch a teammate's change without replacing your page · 6 min video
- Pull with fast-forward, merge or rebase · 6 min video
- Push commits and publish a branch · 4 min video
- Tags, annotations and release naming · 4 min video
- Ignore files and clean untracked work safely · 6 min video
- Correct a local commit message or content · 5 min video
- Follow a file's history and line authorship · 5 min video
- Merge branches with diverged history · 4 min video
- Understand fast-forward merges · 5 min video
- Rebase unpublished work onto a new base · 5 min video
- Merge versus rebase: choose with a graph · 6 min video
- Reorder, squash, reword and drop local commits · 7 min video
- Resolve merge and rebase conflicts · 7 min video
- Continue, skip or abort an active operation · 7 min video
- Apply selected commits with cherry-pick · 5 min video
- Stash work and resume it safely · 5 min video
- Reset: soft, mixed and hard · 6 min video
- Revert a change in shared history · 4 min video
- Find a lost commit with reflog · 5 min video
- GitTree Undo, Redo and recovery snapshots · 6 min video
- Keep detached work and start an orphan history · 5 min video
- Recover mistakes after pushing · 4 min video
How a lesson works
Read or watch
Every lesson is a complete article. Its video has English narration with English and Arabic captions.
See the state
Diagrams and tables show what changes in your files, the staging area, your history and the hosting provider.
Check yourself
Short questions explain every answer, right or wrong. Retry as often as you like.
Practise for real
A practical exercise ends each lesson with a result you can see in GitTree or the terminal.
No account needed
Your progress is kept in this browser. Sign in only if you want it on your account, to continue on another device.