Skip to content

Git Branches

Manage local and remote branches without leaving VS Code.

Features

  • View all local branches sorted by last commit date
  • Checkout a branch with one click
  • Delete a branch — single or multiple selection
  • Protected branches require double confirmation before deletion
  • Open on GitHub — clicking a branch opens its compare view on GitHub

Configuration

"devManager.git.defaultBranch": "main",
"devManager.git.protectedBranches": ["main", "master", "develop", "staging", "production"]

protectedBranches — any branch matching a name in this list will show a confirmation dialog before deletion.

Status Bar

The Git branch status bar item shows:

  • Current branch name (as icon-only — VS Code already shows the full name)
  • ↑N — commits ahead of remote
  • ↓N — commits behind remote

Click it to pull from origin. Status auto-refreshes every 60 seconds and on window focus.