[英]GIT_SSH_COMMAND environment variable as a git configuration
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.我正在使用
GIT_SSH_COMMAND
并且我试图找到是否有相应的git 配置,以便我可以使用而不是使用环境变量,但我找不到它。
is there a way to use git configuration for GIT_SSH_COMMAND
rather than specifying it as an environment variable?有没有办法为
GIT_SSH_COMMAND
使用 git 配置而不是将其指定为环境变量?
The setting is core.sshCommand
, cf.设置是
core.sshCommand
,参见。 https://git-scm.com/docs/git-config 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.
如果设置了这个变量,git fetch 和 git push 将在需要连接到远程系统时使用指定的命令而不是 ssh。 The command is in the same form as the GIT_SSH_COMMAND environment variable and is overridden when the environment variable is set.
该命令与 GIT_SSH_COMMAND 环境变量的形式相同,并在设置环境变量时被覆盖。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.