Provide optional notification when Git auto-fetch detects remote changes
Type: Feature Request
When git.autofetch is enabled, VS Code periodically fetches changes from the remote repository. However, if new commits are detected on the remote branch, there is no explicit visual notification informing the user.
This can lead to situations where users are working under the assumption that their local branch is up to date, while remote changes have already been fetched in the background.
Proposed Solution
Introduce an optional notification mechanism (e.g., a pop-up notification or status bar indicator) that appears when auto-fetch detects new commits on the tracked remote branch.
This behavior could be:
- Configurable via a new setting (e.g.,
git.autofetchNotify) - Disabled by default to avoid intrusive UX
- Triggered only when the current branch has new incoming commits
Use Cases
- Teams working in fast-paced collaborative environments
- Avoiding accidental divergence
- Increasing visibility of remote activity without requiring manual fetch
Alternatives Considered
- Relying on the existing Source Control badge indicator
- Using third-party extensions
While these options exist, a built-in and optional notification would provide clearer and more immediate feedback.
VS Code version: Code 1.109.5 (072586267e68ece9a47aa43f8c108e0dcbf44622, 2026-02-19T19:43:32.382Z) OS version: Windows_NT x64 10.0.26200 Modes:
Thanks for the suggestion. I checked the current Insiders (1.148.0, Linux): the only autofetch settings are Git: Autofetch and Git: Autofetch Period, and nothing notifies you when a fetch brings in new commits.
When autofetch finds incoming commits, the counts on the sync item in the status bar change (for example 1↓ 0↑). The Sync Changes button in the Source Control view shows them too, and the Source Control Graph lists them as incoming changes (scm.graph.showIncomingChanges).
I'm keeping this open as a feature request for an optional notification.
🤖 Authored with GitHub Copilot on behalf of @lszomoru.