你如何更新Windows上的GIT_SSH环境变量 [英] How do you update the GIT_SSH environment variable on Windows

查看:1473
本文介绍了你如何更新Windows上的GIT_SSH环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是TortoiseGit,而且我刚刚将Git for Windows从旧版本升级到2.7.2。在这个过程中, ssh.exe 的位置已经从 C:\ Program Files(x86)\Git\bin\ssh .exe C:\程序文件\Git\usr\bin\ssh.exe

I'm using TortoiseGit, and I've just upgraded Git for Windows from an older version to 2.7.2. In the process, the location of ssh.exe has moved from C:\Program Files (x86)\Git\bin\ssh.exe to C:\Program Files\Git\usr\bin\ssh.exe.

由于它在原始位置找不到 ssh.exe ,因此破坏了我在TortoiseGit中获取更改的能力。在设置中查看显示环境变量(图1),我得到一个生成的文件,其中 GIT_SSH 环境变量设置为旧路径(图2)。

This has broken my ability to fetch changes in TortoiseGit, since it can't find ssh.exe at the original location. Looking at Show Environment Variables in the settings (Image 1), I get a generated file with the GIT_SSH environment variable set to the old path (Image 2).

我不知道这是从哪里来的。它似乎不是Windows的环境变量的一部分。

I have no idea where this is coming from. It doesn't appear to be part of Windows' environment variables.

任何想法,这是为了我可以改变它?

Any idea where this is set so that I can change it?

推荐答案

只需在TortoiseGit设置中输入'ssh.exe' - >将网络作为SSH客户端。由于TortoiseGit设置了PATH,因此不需要输入ssh.exe的完整路径。

Just enter 'ssh.exe' on TortoiseGit settings -> Network as SSH client. As TortoiseGit sets the PATH you don't need to enter the full path to ssh.exe.

这篇关于你如何更新Windows上的GIT_SSH环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆