on-internet
← Community

git identity switcher for linux

Stack Overflow ·

I am using git with the ssh keys. Now I have a problem where 2 users logging into the same username(i can't change that) have the same key when they try to push to gh. And I would like to pick with what key and what identity should one push to git. Now I've seen things like gum and other identity switchers but I would like to find out if there is a simpler bash solution something like with env variables you know if the git identity is set if you try to push to git when the variable is not set you get an option to chose the git identity.

Comments

Sign in or sign up to comment and upvote.

No comments yet.