本文介绍了'git' 未被识别为 cmdlet 的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Github 的一个项目克隆到 Visual Studio,所以我转到新终端并输入:

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 并且 Git 在 Visual Studio 设置中设置为已启用.

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 EDITORSolved same problem by reinstalling GIT.And Refresh npm.Than closed editor and reopened it

这篇关于'git' 未被识别为 cmdlet 的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 20:58
查看更多