i am using GIT_SSH_COMMAND
and i tried to find whether there is a corresponding git configuration so i could use rather than using the environment variable, though i couldn't find it.
is there a way to use git configuration for GIT_SSH_COMMAND
rather than specifying it as an environment variable?
The setting is core.sshCommand
, cf. https://git-scm.com/docs/git-config
If this variable is set, git fetch and git push will use the specified command instead of ssh when they need to connect to a remote system. The command is in the same form as the GIT_SSH_COMMAND environment variable and is overridden when the environment variable is set.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.