Git Changes View
The Git tab shows your working directory status:
Three-Section Layout
- Staged Changes — Files ready to commit (green)
- Changes — Modified or deleted files (orange)
- Untracked — New files not yet tracked by git (gray)
File Status Indicators
- 🟢 Modified (M) — File has been changed
- 🔴 Deleted (D) — File has been removed
- 🟡 Added (A) — New file staged for commit
- ⚪ Untracked (?) — New file not yet staged
Inline Diffs
Click any file to see an inline diff:- Line numbers for old and new versions
- 🟢 Green background for additions
- 🔴 Red background for deletions
- ⚪ Gray for context lines
- Syntax-aware line prefixes (
+,-,) - Side-by-side line numbers (old | new)
- Collapsible sections
Staging Workflow
Stage Individual Files
Click the + button next to a file to stage it.Unstage Files
Click the − button next to a staged file to unstage it.Bulk Actions
- Stage All — Stages all unstaged and untracked files
- Unstage All — Removes all files from the staging area
Commit Composer
The Git tab includes a built-in commit interface:- Stage the files you want to commit
- Write a commit message in the text editor
- Click Commit
- At least one file is staged
- Commit message is not empty
The commit runs in the background using git. CodeFire refreshes the changes view automatically after a successful commit.
Recent Commits
The Git tab shows the last 10 commits:- SHA (short hash)
- Commit message
- Relative time (e.g., “2h ago”, “yesterday”)
GitHub Integration
If GitHub CLI (gh) is installed and authenticated, CodeFire displays:
Pull Requests
- PR number and title
- Author and branch
- Draft badge if applicable
- +/− line counts (additions/deletions)
- CI status (passing, failing, pending)
- Review status (approved, changes requested, review required)
CI / Workflows
- Workflow name and status
- Branch and event (push, pull_request, etc.)
- Timestamp (relative time)
- Status icon:
- ✅ Success (green)
- ❌ Failure (red)
- ⏳ Pending (orange)
- 🚫 Cancelled (gray)
Issues
- Issue number and title
- Labels (with color coding)
- Timestamp (relative time)

Setup GitHub Integration
Install and authenticate GitHub CLI:gh is available and starts polling for:
- Open pull requests
- Recent workflow runs
- Issues assigned to you
Branch Information
The Git header displays:- Current branch name
- Change count (staged + unstaged + untracked)
- Refresh button to manually re-scan
Best Practices
Stage files selectively
Stage files selectively
Don’t use “Stage All” blindly. Review each file’s diff to ensure you’re committing only what you intend.
Write meaningful commit messages
Write meaningful commit messages
CodeFire doesn’t enforce commit message conventions, but consider using:
feat:for new featuresfix:for bug fixesrefactor:for code improvementsdocs:for documentation
Monitor CI status before merging
Monitor CI status before merging
Use the CI / Workflows section to ensure tests pass before merging PRs.
Use CodeFire for quick commits
Use CodeFire for quick commits
For simple commits (typos, small fixes), use CodeFire’s commit composer. For complex commits (rebasing, cherry-picking), use the terminal.
Diff Viewer
CodeFire’s diff viewer supports:- Horizontal scrolling for long lines
- Line-level highlighting (additions, deletions, context)
- Line numbers (old and new)
- Monospace font for alignment
Diff Format
Diffs use git’s unified diff format:- − prefix for removed lines (red background)
- + prefix for added lines (green background)
- No prefix for context lines (gray)
Related Features
Session Monitoring
See which git branch each session ran on
Terminal
Run git commands directly in the integrated terminal
Project Management
Each project tracks its own git repository
Task Tracking
Link commits to tasks for traceability
