A command-line tool to manage multiple GitHub accounts easily. Switch between different GitHub accounts with simple commands.
npm install -g git-account-switcher
- Clone this repository
- Run
npm install
to install dependencies - Run
npm link
to make thegs
command available globally
gs add <email> <username>
gs edit <no> <email> <username>
gs del <no>
gs set <no>
gs list
# 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
Here is the link to set up multiple accounts.
This project is licensed under the MIT License.