question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: spawn git ENOENT

See original GitHub issue

I keep getting this error message: Error: spawn git ENOENT when I try to view git history log for a private repository that I’m contributing to. image

P.S. I have git desktop and git shell already installed on my local computer because I’ve been using git desktop and notepad++ before this. I also have tried caching my git account credential as instructed here and restarted the computer but I’m still getting the same error. image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
zxbettercommented, Jul 27, 2017

I also get the error. In the settings.json of vscode:

"git.path": "D:\\Git\\bin"

all git commands perform well in vscode terminal, except the extension.

when I change the configuration to "git.path": "D:\\Git\\bin\\git.exe", the error disappears.

0reactions
ghostcommented, Nov 22, 2021

ENOENT: spawn git ENOENT

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code Error: spawn git ENOENT - Stack Overflow
I get the error Error: spawn git ENOENT when I try to view git history using https://github.com/DonJayamanne/gitHistoryVSCode on VS Code.
Read more >
Failed to run a scheduled test - [ERROR] katalon - executeJob
Failed to run a scheduled test - [ERROR] katalon - executeJob: { Error: Error: spawn git ENOENT · Product Forums Katalon TestOps.
Read more >
Git lab repository not found - Material Design for Bootstrap
Hi Damian,. I ran the command as you mentioned with my key and I am getting "npm not being able to find a...
Read more >
Error cloning repository in VS Code - Visual Studio Feedback
This morning we noticed errors while trying to clone repo using VS Code. logs are show below: ... }Error: spawn C:\Program Files\Git\cmd\git.exe ENOENT...
Read more >
1950018 – Cannot install npm package from github
Description of problem: In the ubi8/ndoejs-12 container the ... npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found