Show HN: Karn – Manage multiple Git identities
1–10 of 15 posts
Re: Show HN: Karn – Manage multiple Git identities
#2Re: Show HN: Karn – Manage multiple Git identities
#3I use direnv for example for setting per-directory Perl installation variables to keep my development environments separate.
Re: Show HN: Karn – Manage multiple Git identities
#4A more generic tool for this type of function is direnv[ http://direnv.net/ ]. I use direnv for example for setting per-directory Perl installation variables to keep my development environments separate.
Re: Show HN: Karn – Manage multiple Git identities
#5Re: Show HN: Karn – Manage multiple Git identities
#6Does this handle management of SSH keys?
if [ $1 == "home" ]; then
ssh-add -D
ssh-add ~/.ssh/id_rsa_home
ssh -T git@github-home
exit;
fi
where in ~/.ssh/config: Host github-home
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_home
IdentitiesOnly yesRe: Show HN: Karn – Manage multiple Git identities
#7Does this handle management of SSH keys?
Re: Show HN: Karn – Manage multiple Git identities
#8Does this handle management of SSH keys?
I already do this with a simple shell script: if [ $1 == "home" ]; then ssh-add -D ssh-add ~/.ssh/id_rsa_home ssh -T git@github-home exit; fi where in ~/.ssh/config: Host github-home HostName github.com User git IdentityFile ~/.ssh/id_rsa_home IdentitiesOnly yes
:)
Re: Show HN: Karn – Manage multiple Git identities
#9Re: Show HN: Karn – Manage multiple Git identities
#10Earlier quoted context omitted.
I already do this with a simple shell script: if [ $1 == "home" ]; then ssh-add -D ssh-add ~/.ssh/id_rsa_home ssh -T git@github-home exit; fi where in ~/.ssh/config: Host github-home HostName github.com User git IdentityFile ~/.ssh/id_rsa_home IdentitiesOnly yes
I also have stuff like this lying around. Please don't tell Github because I seem to remember it is against their policy. :)