A VS Code status bar button that shows how many commits the current repository is behind its upstream branch, and runs git pull when clicked.
What it does
Adds an item to the right side of the status bar.
Detects the git repo from the active editor's file, or the workspace folder if no file is open.
Shows one of:
git_pull (N) — N commits behind upstream (red background when behind).
git_pull (up to date) — even with upstream.
git_pull (no upstream) — branch has no upstream configured.
git-pull: no repo — no git repo detected.
Re-checks every 60 seconds.
Click to run git pull in the detected repo. Uses VS Code's built-in git extension so authentication (SSH keys, credential helpers) works the same way the SCM view does.
Requirements
VS Code 1.120 or later.
The built-in vscode.git extension must be enabled (it ships with VS Code by default).
Known limitations
In a multi-root workspace with multiple git repos, the active editor's repo wins; otherwise the first workspace folder with a git repo is used.
Only commits-behind is tracked. Local modifications and commits-ahead are shown by VS Code's built-in indicators.