ERROR git is not recognized as an internal or external command

1.5K    Asked by NakanoHase in Devops , Asked on Jul 27, 2021

Every time I run the git command on windows, I get the following error:

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

Is there any way to fix this? Thanks in advance.


Answered by Vinay Yadav

Reason for getting git not recognized error:


Other Apps Messing Up Your System.

  1. Not Having The Program Installed On Your Computer.
  2. Ensure The Program Actually Exists On Your PC.
  3. Use The Full Path To The Executable File.
  4. Enclose The File Path With Double Quotes.
  5. Move The File To System32 Folder.

You have to set your PATH to point at your git installation.

  1. Navigate to "My Computer", right-click
  2. Click on "Properties",
  3. Select "Advanced",
  4. Then choose "Environment Variables",
  5. highpoint the "Path" variable,
  6. Click "Edit",

Then, add your path right before the "Variable value" field, separated by a semicolon from the already present entry.



Your Answer

Interviews

Parent Categories