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

Git Account Switch

Ashutosh Pratap Singh

|
130 installs
| (0) | Free
Clear GitHub credentials in one click
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Account Switcher

A VS Code / Cursor extension for managing multiple GitHub accounts. Store account profiles, map credentials, and switch between accounts — all without leaving your editor.

Features

  • Multi-account profiles — Save up to 5 named GitHub account profiles
  • One-click account switching — Activate any profile to instantly update your Git credentials
  • Credential mapping — Link your stored Git credentials to a profile with a single action
  • Status bar display — Active account name always visible in the VS Code status bar
  • Rename & delete profiles — Full lifecycle management for your accounts
  • Clear credentials — Wipe stored GitHub credentials when needed
  • Cross-platform — Works on Windows (Credential Manager), macOS (Keychain), and Linux (git-credential store)

Usage

Opening the Account Manager

Click the GitHub icon in the status bar (bottom right) — it shows your active account name or No Active Account. This opens the Account Manager quick pick.

Adding an Account

  1. Open the Account Manager
  2. Select + Add Account
  3. Enter a profile name (alphanumeric, hyphens, and underscores; max 30 characters)

Mapping an Account to Your Credentials

Mapping reads your currently stored Git credentials and associates them with a profile.

  1. Open the Account Manager
  2. Select the account you want to map
  3. Choose Map — the extension reads your current git credential and links it to the profile

Switching Accounts (Set Active)

  1. Open the Account Manager
  2. Select the account you want to use
  3. Choose Activate — the extension writes that account's credentials to your Git credential store

Other Actions

Action Description
Rename Change a profile's display name
Delete Remove a profile (clears credentials if it was active)
Clear Credentials Wipe stored GitHub credentials without deleting the profile

How It Works

  • Read (git credential fill) — maps current credentials to a profile
  • Write (git credential approve) — activates a profile by writing its credentials
  • Clear (git credential reject) — removes stored credentials

Requirements

  • VS Code 1.75.0 or later
  • Git installed and accessible in your PATH

Commands

Command Description
Git Account Switcher: Open Open the account management interface
Git Account Switcher: Clear Credentials Clear stored GitHub credentials (legacy V1 command)

Limits

  • Maximum 5 account profiles
  • Profile names must be unique (case-insensitive)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft