Git Integration

See file status at a glance, stage changes, commit, and view diffs—all without leaving your file manager.

Back to Guides

Overview

Captain's Deck automatically detects Git repositories and displays status information directly in the file list. No configuration required—just navigate to a Git repo and you'll see status indicators appear.

Git integration panel showing staged and unstaged changes

Status Indicators

Files in a Git repository show color-coded status badges:

M Modified — File has been changed since last commit
A Added — New file staged for commit
D Deleted — File has been deleted
? Untracked — New file not yet added to Git

Directories also show aggregate status—a folder displays the "highest priority" status of its contents (e.g., if any file inside is modified, the folder shows as modified).

Branch Display

The current Git branch is displayed in the pane header when you're inside a repository. This lets you always know which branch you're working on.

Tip: Click the branch name in the header to quickly see branch information.

Context Menu Actions

Right-click on files to access Git actions:

  • Stage — Add file to staging area (git add)
  • Unstage — Remove file from staging area (git reset)
  • Revert — Discard changes and restore to last commit (git checkout)
  • Diff — View changes compared to HEAD

You can select multiple files and perform these actions in batch.

Git Status Panel

Open the Git Status Panel with Cmd + Shift + G for a comprehensive view of your repository:

  • Changed Files — See all modified, added, and deleted files in one list
  • Staged Changes — View what's ready to be committed
  • Stage All / Unstage All — Quickly stage or unstage everything
  • Commit — Write a commit message and commit directly

Double-click any file in the panel to open a visual diff.

Git Status Panel

Visual Diff

Captain's Deck includes a side-by-side diff viewer to see exactly what changed:

  1. Select a modified file
  2. Right-click and choose Diff, or press Cmd + D
  3. View additions (green), deletions (red), and modifications

The diff viewer shows the file compared against HEAD by default. Use keyboard shortcuts to navigate between changes:

]Jump to next change
[Jump to previous change
EscClose diff viewer

Common Workflows

Quick Commit

  1. Make changes to your files
  2. Press Cmd + Shift + G to open Git Status Panel
  3. Review changed files, click Stage All
  4. Enter commit message and click Commit

Selective Staging

  1. Select specific files you want to commit
  2. Right-click and choose Stage
  3. Open Git Status Panel and commit only staged files

Review Changes Before Commit

  1. Open Git Status Panel
  2. Double-click each modified file to view diff
  3. Stage files you want to include
  4. Commit when ready

Keyboard Shortcuts

Cmd + Shift + GOpen Git Status Panel
Cmd + DView diff for selected file

Next Steps