heygit
v1.0.2
Published
A CLI tool to setup git in one shot and switch between multiple Git profiles
Maintainers
Readme
heygit
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.
What heygit Does
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.
All Features
| 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 |
Installation
Install heygit globally using npm:
npm install -g heygitUsage
Run heygit by typing heygit in your terminal:
heygitInteractive menu 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
Examples
Adding a new account:
$ heygit
? Choose an action: Add a new account
? Enter your name: John Doe
? Enter your email: [email protected]
Account added for John Doe ([email protected])
Public SSH key:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG...Switching accounts:
$ heygit
? Choose an action: Switch account
? Select an account to switch to: John Doe ([email protected])
Switched to account: name: John Doe | email: ([email protected])
SSH keys have been updated in the .ssh directory.Requirements
| Requirement | Notes | | ----------- | ------------------------------------------ | | Node.js | Version 14 or higher | | Git | For version control operations | | SSH | For key generation (usually pre-installed) |
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Created by biohacker0
Support
If you find heygit useful, consider buying me a coffee!
heygit - Simplify your Git profile management and boost your productivity!
