Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Account SwitcherNew to Visual Studio Code? Get it now.
Git Account Switcher

Git Account Switcher

Pukuta Mwanza

|
4 installs
| (0) | Free
Easily switch between multiple Git and GitHub accounts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Account Switcher for VS Code

Easily manage and switch between multiple Git configurations and GitHub CLI accounts directly from VS Code.

Features

  • Switch Account: Quickly swap your git config (user.name, user.email) and gh (GitHub CLI) account.
  • Add Account: Wizard to add new accounts (auto-detects from system or manual entry).
  • Status Bar: Always see which Git account is currently active.
  • Support for Local/Global: Choose to apply git config changes globally or just for the current repository.

Requirements

  • Git: Must be installed.
  • GitHub CLI (gh): Required for switching GitHub accounts.

Usage

  1. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
  2. Type Git Account Switcher.
  3. Select Add Account to configure your personal/work profiles.
  4. Select Switch Account to toggle between them.

Extension Settings

This extension reads/writes to ~/.git-accounts.json, making it compatible with the Git Account Switcher CLI tool.

Publishing to Open VSX

To publish this extension:

  1. Install ovsx: npm install -g ovsx
  2. Package: vsce package
  3. Publish: ovsx publish git-account-switcher-1.0.0.vsix -p <token>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft