Usage
Output
Understanding the Graph
Symbols
| Symbol | Meaning |
|---|---|
● | Commit |
│ | Branch line |
├─╮ | Merge (two parents) |
├─╯ | Branch rejoins |
├─┘ | Branch divergence |
Labels
| Label | Meaning |
|---|---|
HEAD -> main | Current branch |
(main) | Branch name |
(tag: v1.0) | Tag |
(origin/main) | Remote branch |
Options
Example Scenarios
Linear History
Feature Branch
Merge Commit
Multiple Branches
When to Use
The graph command is perfect for:- Quick overview: See branch structure at a glance
- Before merging: Understand what will be merged
- After merging: Verify merge was successful
- Debugging: Find where branches diverged
- Scripting: Output is parseable
Comparison
| Need | Use |
|---|---|
| Quick glance at history | wit graph |
| Detailed commit info | wit log |
| Interactive exploration | wit web |
| Full-featured terminal | wit ui |