Home > database >  Git command not working in VS Code terminal/cmd/powershell
Git command not working in VS Code terminal/cmd/powershell

Time:02-04

I correctly installed GIT, but vs code command prompt responds:

"Git is not recognized as an internal or external command,operable program or batch file."

After adding:

"git.enabled": true,
"git.path": "C:\\'Program Files'\\Git\\mingw64\\bin\\git.exe",

it still won't work. Even after closing and opening vs code.

CodePudding user response:

If vs code doesn't close your internal command prompt and reopens with it again, you have to close the cmd manually.

CodePudding user response:

Have you tried using escaped double-quotes in your .json file, instead of adding single-quotes, which do not exist within the path a all?

  "git.path": "\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"",
  •  Tags:  
  • Related