'git'不被识别为cmdlet的名称 [英] 'git' is not recognized as the name of a cmdlet
问题描述
我正在尝试将Github的一个项目克隆到Visual Studio中,所以我转到New Terminal并输入:
I'm trying to clone a project of Github into Visual Studio, so I go to New Terminal and type:
git clone [CLONE WITH SSH LINK]
它显示:
git:术语'git'不被识别为cmdlet,函数,脚本文件或可运行程序的名称.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试.
git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
但是我已经安装了Git,并且在Visual Studio设置中Git设置为Enabled.
However I have already installed the Git and Git is set to Enabled at Visual Studio settings.
所以我不知道为什么会发生此错误,所以请您帮帮我吗?
So I don't know why this error occurs, so can you help me out please?
您能告诉我如何在Visual Studio中设置/更改Git的路径吗?
And would you please tell me how to set/change path of Git in Visual Studio...
推荐答案
重新安装GIT,重新打开编辑器通过重新安装GIT解决了相同的问题.并刷新npm.比关闭的编辑器然后重新打开
REINSTALL GIT, REOPEN EDITOR Solved same problem by reinstalling GIT. And Refresh npm. Than closed editor and reopened it
这篇关于'git'不被识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!