Automatically refreshes Git status whenever a file is saved. This is particularly useful when working with remote/SSH sessions where Git status updates might be delayed, and supports multi-project workspaces with multiple Git repositories.
Features
Smart Git repository detection - identifies when files are saved in Git repositories
Multi-project support - works with workspaces containing multiple Git repositories
Symlink support - handles symlinked folders and cross-filesystem scenarios (WSL ↔ Windows)
Go to Extensions view (Ctrl+Shift+X or Cmd+Shift+X on Mac)
Search for "Git Refresh on Save"
Click Install
Usage
The extension works automatically after installation. When you save a file:
In a Git repository: Automatically refreshes the Git status
Outside a Git repository: Does nothing (no errors or unnecessary operations)
The extension intelligently detects whether you're working in a Git repository before attempting to refresh Git status, ensuring optimal performance and user experience.
Requirements
VS Code version 1.75.0 or higher
Git installed on your system (for Git repositories)
Extension Settings
This extension provides the following settings:
gitRefreshOnSave.enabled: Enable/disable automatic Git refresh on file save (default: true)
gitRefreshOnSave.ignoredFilePatterns: Array of file patterns to ignore (default includes common patterns like node_modules, log files, temporary files, etc.)
You can configure these settings in VS Code/Cursor settings under "Extensions > Git Refresh on Save".
Known Issues
No known issues at this time.
Release Notes
0.0.8
Fixed Git refresh functionality: Restored proper Git status updates while eliminating dropdowns
Smart repository targeting: Uses Git extension API for specific repository refresh
Improved refresh logic: Targets specific repositories instead of global refresh commands