heygit is a command-line tool designed to simplify the management of multiple Git profiles. Seamlessly switch between different Git accounts, manage SSH keys, and streamline your development workflow across various projects and platforms.
Setup Git accounts on new machines Got a new computer and need to set up Git? heygit handles all the Git configuration and SSH key generation. Just add your account, copy the generated key to GitHub, and start coding.
Manage multiple GitHub accounts Switch between personal, work, and client GitHub accounts instantly. Each account has separate Git configs and SSH keys.
Easy credential management Remove accounts, view current settings, or clean up Git configuration when needed.
| Feature | Description |
|---|---|
| Profile Switching | Switch between multiple Git profiles instantly |
| SSH Key Management | Automatic generation and management of SSH keys |
| Account Listing | View all configured accounts with their status |
| Account Addition | Add new Git accounts on the fly |
| Account Removal | Remove accounts when no longer needed |
| Secure Storage | Local storage of account information |
| Cross-platform | Windows, macOS, Linux compatibility |
| SSH Key Display | Show SSH keys for current or specific users |
Install heygit globally using npm:
npm install -g heygitAfter installation, you can run heygit by typing heygit in your terminal:
heygitThis will launch an interactive menu with the following options:
- List all accounts
- Add a new account
- Switch account
- Remove an account
- Remove all accounts
- Show SSH key of current user
- Show SSH key of specific user
- Exit
Follow the on-screen prompts to manage your Git profiles effortlessly.
Follow the on-screen prompts to manage your Git profiles effortlessly.
Adding a new account:
$ heygit
? Choose an action: Add a new account
? Enter your name: John Doe
? Enter your email: john@example.com
Account added for John Doe (john@example.com)
Public SSH key:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG...Switching accounts:
$ heygit
? Choose an action: Switch account
? Select an account to switch to: John Doe (john@example.com)
Switched to account: name: John Doe | email: (john@example.com)
SSH keys have been updated in the .ssh directory.| Requirement | Notes |
|---|---|
| Node.js | Version 14 or higher |
| Git | For version control operations |
| SSH | For key generation (usually pre-installed) |
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Created by biohacker0
If you find heygit useful, consider buying me a coffee!
heygit - Simplify your Git profile management and boost your productivity!