gitswitcher
v2.0.1
Published
Program that helps you switch between your GitHub, GitLab & Bitbucket accounts.
Downloads
7
Readme
▄▀▒░█░▀█▀░▄▀▀░█ ░▒█░█░▀█▀░▄▀▀░█▄█▒██▀▒█▀▄
░▀▄█░█ ▒█▒▒▄██░▀▄▀▄▀░█ ▒█▒░▀▄▄▒█▒█░█▄▄░█▀▄
GitSwitcher - Program that helps you switch between your git-hub, git-lab & bitbucket accounts.
GitSwitcher CLI Command Guide
0. Installation
npm install -g gitswitcher
1. Create a Table for Storing Accounts
- Command:
create <tableName>
- Description: Creates a new table for storing account credentials (e.g., for GitHub or GitLab).
- Example:
This command creates a table namedgitswitcher create github
github
.
2. Delete a Table
- Command:
delete-table <tableName>
- Description: Deletes a table from the database.
- Example:
This command deletes the table namedgitswitcher delete-table github
github
.
3. Add an Account to a Table
- Command:
add <tableName> <name> <email> [token]
- Description: Adds a new account to the specified table. An optional
token
parameter can be provided to store a token or password. - Example (without token):
gitswitcher add github "YourName" "[email protected]"
- Example (with token):
gitswitcher add gitlab "YourName" "[email protected]" "your_personal_access_token_or_password"
4. Delete an Account from a Table
- Command:
delete-account <tableName> <identifier>
- Description: Deletes an account from the specified table using either its ID or name.
- Example:
This command deletes the account with IDgitswitcher delete-account github 1
1
from thegithub
table.
5. Show All Accounts in a Table
Command:
show <tableName>
Description: Displays a list of all accounts in the specified table.
Example:
gitswitcher show github
This command displays all accounts stored in the
github
table.Output Example:
Accounts in folder 'github': 1: DenisYasyuchenya 2: AnotherUser 3: ExampleUser
6. Show All Tables (Folders) in the Database
Command:
show-folders
Description: Lists all tables in the database, excluding system tables.
Example:
gitswitcher show-folders
This command displays all tables (e.g.,
github
,gitlab
).Output Example:
Your folders: github gitlab
7. Switch to an Account
- Command:
use <tableName> <id>
- Description: Switches the current Git configuration to the specified account by its ID.
- Example:
This command switches the current Git configuration to the account with IDgitswitcher use github 1
1
in thegithub
table.