Hurry! Try our new Interactive Courses for FREE. 🥳   🚀
Not satisfied by the Answer? Still have doubts?
Ask Question

'git' is not recognized as an internal or external command

I have an installation of Git for Windows, but 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?
path git windows
by

2 Answers

akshay1995
1.Go to My Computer => Local Disk(C:) => Program Files(x86) => Git => cmd
2.Right Click the git => Select Properties
3.Under the location Copy the text eg - C:Program Files (x86)Gitcmd
4.Come back to the Desktop
5.Right-click My Computer
6.Select property
7.Open Advanced
8.Click Environment Variables
9.In the System variables Find the Variable call Path
10.Click the variable
11.Click the Edit Button
12.Select the Variable value Text Box .
13.Go to the edge of the text and put semicolon(;)
14.Then Right-click and press Paste
Press Ok
sandhya6gczb
Have you correctly set your PATH to point at your Git installation?
You need to add the following paths to PATH:

C:Program FilesGitbin
C:Program FilesGitcmd

And check that these paths are correct – you may have Git installed on a different drive, or under Program Files (x86). Correct the paths if necessary.

Login / Signup to Answer the Question.

  • Be descriptive with your answer, and try to avoid copy-pasting external links, instead guide the user who has asked the question, where can they find the detailed answer.
  • You cannot share any URL in answer.
  • To make a text bold, surround the text with single asterisk, for example *bold text*
  • To format a text like code, surround the text within double asterisk, for example **code**
  • To add a multiline piece of code, surround the whole code within triple asterisk, for example *** multiline code ***
  • Please verify before submitting the answer.