简体   繁体   English

GIT_SSH_COMMAND 环境变量作为 git 配置

[英]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 配置而不是将其指定为环境变量?

core.sshCommand core.ssh命令

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM