Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>GitDeckNew to Visual Studio Code? Get it now.
GitDeck

GitDeck

Bar Melamed

|
1 install
| (0) | Free
Your git flow in one panel: switch branches in one click. Each branch gets its own worktree with shared node_modules/.env, its own ports, a live run status and its PR.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitDeck

A VS Code sidebar that lists your git branches. Click a branch to switch to it.

Each branch is opened as its own git worktree, so you can keep several branches checked out (and running) at the same time, without the usual worktree pain:

  • No npm install per branch. node_modules, .env* and venvs are symlinked from the main repo. If a branch changes package.json or the lockfile, its node_modules is cloned instead (copy-on-write on macOS), so installing there can't break other branches.
  • No port clashes. Every worktree gets its own port offset (main = base port, then +1, +2…).
  • Live status. Start/stop the React app and backend per branch and see 🟢 running / ⏳ starting / 🔴 crashed, in the panel and in the status bar. You get a notification when a service crashes.
  • Git state at a glance. ● uncommitted changes, ↑2 ↓1 ahead/behind the upstream, and the branch's open PR with its checks (#42 ✓) when the GitHub CLI is installed and signed in.
  • Remote branches. A teammate's branch is one click away under Remote: it's checked out in its own worktree, tracking the remote.

Usage

Action How
Switch to a branch Click it (creates the worktree on first use), or GitDeck: Switch Branch… from the Command Palette
Open in a new window Window icon next to the branch
New branch + in the view title (branches from the current one)
Check out a remote branch Click it under Remote. Fetch with the cloud icon in the view title
Start / stop / restart services ▶ / ■ / ↻ next to the branch, or next to a single service
Open in browser / logs Globe / output icon next to a service, or click the services in the status bar
Open the PR Right-click → Open Pull Request
Stop everything … in the view title → Stop All Services (every branch, every window)
Clean up … → Clean Up Merged Worktrees… removes worktrees of branches merged into the main repo's branch or deleted on the remote
Remove worktree Right-click → Remove Worktree…

Tip: bind GitDeck: Switch Branch… (gitdeck.switchBranch) to a key in Keyboard Shortcuts.

Worktrees are created in <repo parent>/.gitdeck/<repo name>/<branch> (setting gitdeck.worktreesDir).

Config: .gitdeck.json in the repo root

Click the gear icon to generate one from the folders that have a dev/start script.

{
  "shared": [".env", "client/node_modules", "server/node_modules"],
  "setup": ["npm install"],
  "services": [
    { "name": "server", "cwd": "server", "cmd": "npm run dev", "basePort": 5000 },
    {
      "name": "client", "cwd": "client", "cmd": "npm start", "basePort": 3000,
      "env": { "PORT": "${port}", "REACT_APP_API_URL": "http://localhost:${port:server}" }
    }
  ]
}
  • shared: optional, auto-detected when omitted (node_modules, .env*, .venv in the root and direct subfolders).
  • setup: optional, a command or a list of commands run in the root of every new worktree (e.g. installs, migrations). Re-run it with right-click → Run Setup.
  • env: ${port} is the service's port in this worktree, ${port:<name>} another service's. Default { "PORT": "${port}" }.
  • Before starting, GitDeck checks the ports. If something it didn't start is already listening, it asks first, and the service shows as in use, not started by GitDeck.
  • Services run detached with logs in .gitdeck/<repo>/.logs, so they keep running when you switch windows.

Settings

Setting Default
gitdeck.worktreesDir <repo parent>/.gitdeck/<repo name> Where worktrees are created
gitdeck.pollInterval 5000 Status refresh interval (ms)
gitdeck.github true Show PRs and checks via gh
gitdeck.notifyOnCrash true Notify when a service crashes

Works on macOS, Linux and Windows. On Windows, folders are shared as junctions; files like .env are symlinked when Developer Mode is on and copied otherwise.

Development

npm install
npm run compile   # then F5 to launch an Extension Development Host
npm test          # unit tests + integration tests against temp git repos
npm run package   # builds gitdeck-<version>.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft