git is not recognized as an internal or external command

0 votes

When I try to use the git command in Command Prompt, I get the following error:

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

How do I fix this problem?

Apr 28, 2022 in Other DevOps Questions by Kichu
• 19,040 points
6,268 views

1 answer to this question.

0 votes

Add the following paths to PATH:

  • C:\Program Files\Git\bin\
  • C:\Program Files\Git\cmd\

Then check whether the paths are correct or not.

Modifying PATH on Windows 10:

  • Search > environment variable > Edit the system environment variables.
  • Then click on the Environment Variables. 
  • Click on Path under System variables.
  • Add C:\Program Files\Git\bin\ and C:\Program Files\Git\cmd\ to the end of the list.
  • Close the console and then re-open it

The Prompt Engineer Certification helps professionals showcase their knowledge in AI prompt design.

I hope this helps. 

answered Apr 29, 2022 by narikkadan
• 86,360 points

Related Questions In Other DevOps Questions

0 votes
1 answer

What is the best practice for updating an already existing web app deployment using ARM?

The Service Principal solution, through the SDK, ...READ MORE

answered Jul 9, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,119 views
0 votes
1 answer

Command not working in .bat script but works in CLI

powershell /? If you run the above command ...READ MORE

answered Jul 19, 2018 in Other DevOps Questions by ajs3033
• 7,300 points
2,031 views
+6 votes
1 answer