Skip to content

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

License

Notifications You must be signed in to change notification settings

0xtbug/gitswitcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "[email protected]" "work-username"

# Add another account
gs add "[email protected]" "personal-username"

# List all accounts
gs list

# Switch to account #1
gs set 1

# Edit account #2
gs edit 2 "[email protected]" "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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published