Set GIT_SSH Environment Variable in Gitconfig

voltair picture voltair · Aug 4, 2013 · Viewed 17.7k times · Source

Is there a way to set the GIT_SSH environment variable in the gitconfig file?

Answer

VonC picture VonC · Aug 4, 2013

GIT_SSH isn't mentioned in the git config man page.

"Git clone with custom SSH using GIT_SSH error" describes how to pass option to GIT_SSH, but illustrates that it isn't part of a git repo config.