A VS Code extension that provides powerful Git comparison tools with an intuitive visual interface.
Compare any file with versions from different branches or commits with side-by-side diff view.
Compare entire directories between branches with file status indicators and bulk operations.
Apply changes from any branch or commit directly to your current file.
- Smart branch detection: Shows both local and remote branches with clear prefixes
- Bulk operations: "Get All" option for downloading multiple files at once
- Intuitive UI: Clean interface with helpful status icons and descriptions
- Retrieve missing files from remote references
- Support for nested directory structures
Method 1: Right-click in Editor
- Right-click anywhere in the open file
- Select
Pretty Git Diff: File - Choose reference type (Branches or Commits)
- Select branch/commit from the list
- View side-by-side comparison with read-only left panel
Method 2: Explorer Context Menu
- Right-click on any file in the Explorer
- Select
Pretty Git Diff: File - Follow steps 3-5 above
Method 1: Command Palette
- Open Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Type
Pretty Git Diff: Directory - Choose workspace root or select specific folder
- Choose reference type (Branches or Commits)
- Select branch/commit from the list
- Browse files with status indicators:
- 🆕 New files (available in reference)
- 📝 Modified files
- 📄 Local only files
- Use "📥 Get All Files" to download multiple files at once
Method 2: Explorer Context Menu
- Right-click on any folder in the Explorer
- Select
Pretty Git Diff: Directory - Follow steps 4-7 above
- Right-click in editor or on file in Explorer
- Select
Pretty Git Diff: Apply - Choose reference type (Branches or Commits)
- Select branch/commit to apply changes from
- File content will be completely replaced
The extension shows branches with clear prefixes:
📁 local/main- Local branches🌐 origin/feature-branch- Remote branches📝 abc1234 - commit message (author)- Recent commits
- Git repository
- VS Code 1.50.0 or higher
If you see warnings about no files selected, make sure to:
- Open a file in the editor before using File commands
- Open a workspace before using Directory commands from Command Palette
- Right-click on files/folders in Explorer for context menu access
If you see "This project is not a Git repository" error:
- Initialize Git in your project:
git init - Clone from a Git repository
- Open a folder that contains a
.gitdirectory
For issues and feature requests, please check the extension's marketplace page or repository.

