Reputation: 43
Error when trying a Git command in cmd:
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.
I need this to work in the integrated terminal on Visual Studio Code!
I've already tried editing the path variables and the settings in Visual Studio Code. Nothing works.
Upvotes: 1
Views: 5402
Reputation: 2665
"Not recognized" is normally the way terminals politely tell you they don't know what you typed means.
If you can use Git from a command line, then it's installed properly. You can use where git
or which git
depending on your command line to find the path of the functioning Git (if those don't work, please specify your terminal type in the question).
Once done, open Visual Studio Code, hit Ctrl + , to open settings and type git path
in the search. Add this path, and you should be able to use Git in Visual Studio Code.
Upvotes: 6