A CLI tool to manage multiple Git profiles with SSH keys.
If you have Go installed, you can install GhostHub directly:
go install github.com/juiceofcode/ghosthub@latest-
Download the latest release for your system:
- For Linux:
ghosthub-linux-amd64 - For macOS (Intel):
ghosthub-darwin-amd64 - For macOS (Apple Silicon):
ghosthub-darwin-arm64
- For Linux:
-
Make the file executable and move it to your PATH:
chmod +x ghosthub-<your-system>
sudo mv ghosthub-<your-system> /usr/local/bin/ghosthub- Download the latest release:
ghosthub-windows-amd64.exe - Rename it to
ghosthub.exe - Move it to a directory in your PATH (e.g.,
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps)
- Clone the repository:
git clone https://github.com/juiceofcode/ghosthub.git
cd ghosthub- Build and install:
./build.sh
./install.sh- Clone the repository:
git clone https://github.com/juiceofcode/ghosthub.git
cd ghosthub- Build and install:
build.bat
install.batghosthub add [profile] --name "Your Name" --email "your.email@example.com" --keygen "ed25519"Options:
--name: Your Git user name--email: Your Git email--keygen: SSH key type (ed25519 or rsa-4096)
ghosthub delete [profile]ghosthub listghosthub use [profile]ghosthub infoghosthub key [profile] --type "ed25519"Options:
--type: SSH key type (ed25519 or rsa-4096)
ghosthub add work --name "John Doe" --email "john@company.com" --keygen "ed25519"ghosthub use workghosthub listghosthub delete workghosthub key work --type "ed25519"- Go 1.16 or higher (for development)
- Git
- OpenSSH (for SSH key management)
- Windows 10/11, macOS 10.15+, or Linux
MIT