New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

Git Account Switch

Package Overview
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Git Account Switch

Clear GitHub credentials in one click

Open VSX
Version
0.8.0
Version published
Maintainers
0
Created
Source

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

  • Open the Account Manager
  • Select + Add Account
  • 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.

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

Switching Accounts (Set Active)

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

Other Actions

ActionDescription
RenameChange a profile's display name
DeleteRemove a profile (clears credentials if it was active)
Clear CredentialsWipe 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

CommandDescription
Git Account Switcher: OpenOpen the account management interface
Git Account Switcher: Clear CredentialsClear stored GitHub credentials (legacy V1 command)

Limits

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

License

MIT

FAQs

Package last updated on 22 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts