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.

'git' is not recognized as an internal or external command, operable program or batch file.

See original GitHub issue

I’m guessing this has something to do with:

“git_command: a path to your git binary if it’s not in the $PATH available to Python (you’ll get an error message if you need to set this)”, so I tried to followed the comment in git.sublime-settings

// if present, use this command instead of plain "git"
// e.g. "/Users/kemayo/bin/git" or "C:\bin\git.exe"

I use Windows 7, and as far as I know the git binary is located at

C:\Program Files (x86)\Git\bin\git.exe

I also followed your wiki to the point where I copy the Git.sublime-settings from the Git folder to the User folder, but seems neither “C:\bin\git.exe”, or in my case “C:\Program Files (x86)\Git\bin\git.exe” gives a invalid escape error. I tried JSON escaping with \ but still get the same error when testing git commands:

‘git’ is not recognized as an internal or external command, operable program or batch file.

Any ideas what I’m missing?

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:27 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
abhilashloharcommented, Apr 6, 2015

Error:- git: ‘Files’ is not a git command. See ‘git --help’.

Did you mean this? ls-files

1reaction
NickTomlincommented, Apr 19, 2012

I added “git_command”: “‘C:\Git\bin\git.exe’”

And it’s working for me. Now I have to figure out why my branches got all spliced up. Ah the life of a git noob.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "'git' is not recognized as an internal or external command"
Go to My Computer => Local Disk(C:) => Program Files(x86) => Git => cmd · Right Click the git => Select Properties ·...
Read more >
Solve: Git Is Not Recognized as an Internal or External ...
Fix 1: Restart Command Prompt · Fix 2: Reinstall Git for Windows · Fix 3: Configure the Git Path Manually.
Read more >
Fix: 'git' is not recognized as an internal or external command
Method 2: Using the Automatic way of adding GIT path to Variables · Press Windows key + R to open up a Run...
Read more >
Git is Not Recognized as an Internal or External ... - Linux Hint
Suppose you have git installed and still getting the “'git' is not recognized as an internal or external command, operable program or batch...
Read more >
Fix: git is not recognized as an internal or external command ...
git is not recognized as an internal or external command, operable program or batch file is an external command error.
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