即使设置了PATH变量,也无法将'git'识别为内部或外部命令 [英] 'git' is not recognized as an internal or external command even with the PATH variable set
问题描述
我一直试图在cmd上使用Github命令,但是它一直在输出
I have been trying to use the Github commands on the cmd, but it keeps outputting
'git'不被识别为内部或外部命令
'git' is not recognized as an internal or external command
我的PATH已经设置好,看起来像是
My PATH is already set and looks like
C:\Users\user\AppData\Local\ \GitHubDesktop\bin
C:\Users\user\AppData\Local\GitHubDesktop\bin
我真的不知道该怎么办;我已经尝试过重新启动并重新安装。我看到了一个其他问题存在类似的问题,但是响应对我而言并不合理。
旁注:我正在使用Windows 10系统
I don't really know what to do; I already tried restarting and reinstalling. I saw one other question with a similar problem, but the response didn't quite make sense to me. Side note: I'm using a Windows 10 system
推荐答案
您将需要下载并安装Git Bash应用程序,位于此处。该程序将允许您通过其命令行运行所有'git'命令。
You will need to download and install the Git Bash app, located here. This program will allow you to run all of the 'git' commands via its command line.
此链接将提供更多信息,因为您似乎已安装GitHubDesktop程序,而不是Git。
This link will provide more information, as it appears you have installed the GitHubDesktop program, not Git.
希望这会有所帮助!
这篇关于即使设置了PATH变量,也无法将'git'识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!