I figured out a simple solution for this, as I ran into this as well and didn’t want to install another ssh add on.
You can generate the ssg-keygen
into the config folder, I did /config/.ssh
to be consistent.
Then in your /config/.git/config
file add the following:
[core]
sshCommand = ssh -i /config/.ssh/id_rsa
Then for every git command for that repo it will use that specific ssh key. Plus then you also commit the ssh key at this point in case anything were to happen, win win.