git-account-switcher

1.1.0 • Public • Published

GitSwitcher (gs)

A command-line tool to manage multiple GitHub accounts easily. Switch between different GitHub accounts with simple commands.

Table of Contents

Installation as a global npm package

npm install -g git-account-switcher

Manual Installation

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Run npm link to make the gs command available globally

Usage

Add a new GitHub account

gs add <email> <username>

Edit an existing account

gs edit <no> <email> <username>

Delete an account

gs del <no>

Set active GitHub account

gs set <no>

List all configured accounts

gs list

Example

# Add a new account
gs add "work@example.com" "work-username"

# Add another account
gs add "personal@example.com" "personal-username"

# List all accounts
gs list

# Switch to account #1
gs set 1

# Edit account #2
gs edit 2 "new@example.com" "new-username"

# Delete account #1
gs del 1

Set up github multiple accounts

Here is the link to set up multiple accounts.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i git-account-switcher

Weekly Downloads

7

Version

1.1.0

License

MIT

Unpacked Size

10.2 kB

Total Files

4

Last publish

Collaborators

  • 0xtbug