Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "'git' is not recognized as the name of a cmdlet"

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]

and it shows:

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.

However, I have already installed Git and Git is set to Enabled at Visual Studio settings.

Why does this error occur, and how can I fix it?

And how can I set/change the path of Git in Visual Studio...


1 Answers

Reinstall Git and reopen the editor

I solved the same problem by reinstalling Git.

And refreshed npm.

Then I closed the editor and reopened it.

like image 112
SystemX Avatar answered Jan 29 '26 13:01

SystemX