Skip to content

sageil/ghswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

ghswitch


Switch github accounts using ssh anywhere on your machine.


Requirements

github account must be configured to connect using ssh Connect to github using SSH

For ghswitch to function, your ssh private key must have a comment. You can add a comment to an existing ssh private key using using

ssh-keygen -c -f ~/.ssh/private_key

Installation

The installation instruction assumes /usr/local/bin/ is part of your shell's $PATH environment variable.

Using curl:

sudo curl -L -o /usr/local/bin/ghswitch https://raw.githubusercontent.com/sageil/ghswitch/main/ghswitch && sudo chmod +x /usr/local/bin/ghswitch

Using wget:

sudo wget -O /usr/local/bin/ghswitch https://raw.githubusercontent.com/sageil/ghswitch/main/ghswitch && sudo chmod +x /usr/local/bin/ghswitch

Usage (using an email address as the private ssh key comment):

Using short form:

Using long form:

Help

  • ghswitch -h

Compatibility:

ghswitch was tested on macOS ventura, Ubuntu and Almalinux using stand-alone Terminal Emulators and Visual Studio Code terminal.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages