DEV Community

Discussion on: Using Git with two or more users

Collapse
 
fniro profile image
Facundo Niro • Edited

Another (not so pretty) alternative would be to add an alias for it:
Example:

alias ssh="eval \"$(ssh-agent -s)\" && ssh-add --apple-use-keychain ~/.ssh/id_1"

alias my_other_ssh="eval \"$(ssh-agent -s)\" && ssh-add --apple-use-keychain ~/.ssh/id_2"
Enter fullscreen mode Exit fullscreen mode