Skip to main content
View your commit history as a visual graph directly in the terminal.

Usage

Output

Understanding the Graph

Symbols

Labels

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

Tips

Combine with grep for quick searches:
Use -n to limit output for large repositories: