Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为 git 指定 openssh 二进制文件的路径。对于 CVS,您可以使用
CVS_RSH="~/openssh/bin/ssh"
在您的点文件中。git有等价物吗?
使用“GIT_SSH”。有关文档,请参阅git(1)。
GIT_SSH 答案可能是您正在寻找的答案,但请注意,为了更好地控制连接,您可以指定 core.gitproxy 可执行文件。这将采用两个参数指定主机和端口,并可用于根据您尝试从中提取的主机进行任意复杂的连接(例如,通过代理或 ssh 隧道等)。