我已经在我的笔记本电脑上安装了Windows10 x64,然后使用最新的Git (Git-2.6.3-64-bit
)。正如我在笔记本电脑上看到的,Git现在安装在这个目录:C:\Users\MyPC\AppData\Local\Programs\Git
(我没有机会指定另一个特定的文件夹,因为它是在Git安装期间自动完成的)。已经选择了“从Windows提示符使用Git”和"Use OpenSSH“选项,使用Git更新窗口路径。毕竟,问题在于,Windows无法识别Git在哪里调用。我尝试过git --version
,但它在Windows中是无法识别的。
我的问题是(在Windows10Pro x64上):
发布于 2019-06-14 16:25:11
这是一次非常令人沮丧的旅程,但对我来说,下面这段旅程让我开始了:
发布于 2015-12-09 18:14:12
尝试以管理员身份运行安装程序,以便将其安装到Program中。我不知道如何指定自定义路径。
一些人告诉我,它可能存在于Git安装中的.ssh
文件夹中,所以C:\Users\MyPC\AppData\Local\Programs\Git\.ssh
AFAIK您可以添加任何目录到您的路径。
将C:\Users\MyPC\AppData\Local\Programs\Git
添加到您的路径:
Start the System Control Panel applet (Start - Settings - Control Panel - System).
Select the Advanced tab.
Click the Environment Variables button.
Under System Variables, select Path, then click Edit.
You'll see a list of folders, as this example for my system shows: C:\Program Files\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Support Tools\;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\Program Files\Intel\DMIX;C:\Program Files\Executive Software\Diskeeper\;C:\Program Files\Bonjour\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Misc
You can add additional folders that you want to include in searches. I add a "C:\program files\misc" entry into which I place my standalone utilities, instead of copying them into C:\windows. Click OK.
You'll need to restart the processes (e.g., command prompt) that use the system path to see the added folders.
来自http://windowsitpro.com/systems-management/how-can-i-add-new-folder-my-system-path
https://stackoverflow.com/questions/34185901
复制相似问题