Pretty Git Diff
A VS Code extension that provides powerful Git comparison tools with an intuitive visual interface.
Download
โจ Features
๐ File Comparison
Compare any file with versions from different branches or commits with side-by-side diff view.

๐ Directory Comparison
Compare entire directories between branches with file status indicators and bulk operations.

๐ Apply Changes
Apply changes from any branch or commit directly to your current file.
Key Benefits
- 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
How to Use
๐ Compare Current File
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
๐ Compare Directory
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
๐ Apply Changes to File
- 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
๐ Branch Selection
The extension shows branches with clear prefixes:
๐ local/main- Local branches๐ origin/feature-branch- Remote branches๐ abc1234 - commit message (author)- Recent commits
Requirements
- Git repository
- VS Code 1.50.0 or higher
Troubleshooting
No files/directories selected
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
Not a Git repository
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
Support
For issues and feature requests, please check the extension’s marketplace page or repository.