gitmt
v2.0.1
Published
CLI tool to manage multiple git accounts and SSH keys
Downloads
12
Maintainers
Readme
GitMT - Git Multiple Account Manager
A CLI tool to manage multiple Git accounts with SSH key support.
Installation
npm install -g gitmtUsage
Add a new user
gitmt add -n "John Doe" -e "[email protected]" -a "johndoe"This will:
- Generate SSH key if needed
- Configure SSH for GitHub
- Set up git config
Clone repositories
After setting up a user, clone repositories using the alias:
git clone [email protected]:username/repo.gitOther commands
gitmt list # List all configured users
gitmt current # Show current active user
gitmt change <id> # Switch to a different user
gitmt remove <id> # Remove a user
gitmt key <id> # Show public SSH key for a user