# Viewing History

## Viewing History

### Git Log
```
View in Cursor:
1. Source Control panel
2. Click "..." → "View History"

Or use terminal:
git log --oneline -20
git log --graph --all
```

### Blame/Annotate
```
Right-click in editor:
"Git: Show File History"
"Git: Show Line History"

Or via command palette:
"Git: Open File History"
```

### Diff Views
```
Compare working changes:
- Click file in Source Control
- Opens diff view

Compare branches:
Cmd+Shift+P → "Git: Compare..."

Compare commits:
Use terminal or GitLens extension
```