How to specify the private SSH-key to use when executing shell command on Git?
Something like this should work (suggested by orip): if you prefer subshells, you could try the following (though it is more fragile): Git will invoke SSH which will find its agent by environment variable; this will, in turn, have the key loaded. Alternatively, setting HOME may also do the trick, provided you are willing to … Read more