A cli written in tcl to manage git accounts across multiple platforms.
commands:
help display this help text
list list all available accounts
set <index> list all available accounts and then set account by index
(you may optionally specify the account index to skip
listing all accounts)
Accounts are configured in the accounts.conf
file. This file must be placed in the same directory as the tcl script. Accounts are configured with a username, email, and host.
Note that the host for any account must include the full hostname for the platform. For example:
github.com
-> OKgithub
-> NOcodeberg.org
-> OKcodeberg
-> NO
Accounts may optionally include an ssh key filename if the name of your key file does not match the username of your account. The script assumes all ssh keys are in the ~/.ssh/
directory.
Accounts may also optionally include a note.
The script will overwrite the ~/.ssh/git-keychain.ssh.conf
and ~/.gitconfig
files upon selection. If there is no git-keychain.ssh.conf
file, the script will create one. In order to use this config, make sure the following is included in your standard ssh config file:
Include git-keychain.ssh.conf