Source Control
Blueberry includes built-in Git integration with staging, commits, and a visual diff viewer.
Source Control Panel
Access the Source Control panel from the sidebar to see all your changes.
File States
| Icon | State |
|---|---|
| M | Modified |
| A | Added (new file) |
| D | Deleted |
| U | Untracked |
Actions
- Stage - Click the
+button to stage a file - Unstage - Click the
-button to unstage - Discard - Revert changes to last commit
- View Diff - Click a file to see the diff
Staging Changes
Stage Individual Files
Click the + button next to any changed file to stage it.
Stage All
Click “Stage All” to stage all changes at once.
Partial Staging
The diff viewer shows individual hunks that can be staged separately.
Committing
- Stage your changes
- Enter a commit message in the text field
- Click “Commit” or press
Cmd+Enter
Commit Message Tips
- Keep the first line under 50 characters
- Use present tense (“Add feature” not “Added feature”)
- Reference issue numbers if applicable
Diff Viewer
The side-by-side diff viewer shows original vs. current content:
Features
- Line numbers with diff indicators
- Syntax coloring in both panes
- Scroll sync between panes
- Full-screen view for detailed review
Reading Diffs
- Red background - Removed lines
- Green background - Added lines
- Yellow background - Modified lines
Git Gutter
The editor shows live git status in the left margin:
- 🟢 Green - New lines
- 🔵 Blue - Modified lines
- 🔴 Red - Deleted lines
Hover over the gutter to see the original content.
Branch Management
View your current branch in the status bar. Branch switching is available through the terminal.
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Open Source Control | Cmd+Shift+G |
| Stage selected | Cmd+Enter (in diff view) |
| Commit | Cmd+Enter (in message field) |
Last updated on