Git IdentityFile in config

0

When I need to add new identity I must edit ".ssh/config" file manually. I'm just wondering is there a git command to add "IdentityFile" (with path to key) in "config" file?

c97

Posted 2017-03-03T17:56:45.797

Reputation: 880

Answers

1

Adding identities isn't supposed to be a common thing. The way it's supposed to work is that you have one key-pair as your identity and use its public key for everything. Also, those are an SSH concept, not a git concept. For both of those reasons, git doesn't have a command to do that automatically.

Joseph Sible-Reinstate Monica

Posted 2017-03-03T17:56:45.797

Reputation: 1 420