Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

'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?
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)\Git\cmd
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 Files\Git\bin\
C:\Program Files\Git\cmd\

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.