1.1.0 • Published 7 months ago
git-account-switcher v1.1.0
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
- Clone this repository
- Run
npm install
to install dependencies - Run
npm link
to make thegs
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.