• Register
0 votes
297 views

Problem :

I have installed Git for Windows but when I try to use git command in Command Prompt I get the following message:
'git' is not recognized as an internal or external command, operable program or batch file.
6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

I also had same problem with my GIT.
I simply followed following steps to get the issue resolved:
  1. Please go to your My Computer =>(C:) => Program Files(x86) => Git => cmd
  2. Now do the right Click at git => Select Properties
  3. On the location Copy the following text C:\Program Files (x86)\Git\cmd
  4. Now come back to your Desktop
  5. Right click on your My Computer
  6. Select the property
  7. Open the Advanced
  8. Click on Environment Variables
  9. Now in the System variables search the Variable called Path
  10. Click on the variable
  11. Click on the Edit Button
  12. Select the required Variable value Text Box .
  13. Go to the edge of the text box and enter the semicolon(;)
  14. Then Just do the Right click and click on Paste
  15. Finally press on Ok
9 7 4
38,600 points
0 votes

Solution:

You require to include the following paths to PATH:

  • C:\Program Files\Git\bin\

  • C:\Program Files\Git\cmd\

And inspect that these paths are right – you may have Git installed on a different drive, or under Program Files (x86). Fixed the paths in case required.

Modifying PATH on Windows 10:

  1. In the Start Menu or taskbar search, seek for "environment variable".
  2. Choose "Edit the system environment variables".
  3. Click On the "Environment Variables" button at the bottom.
  4. Double-click the "Path" entry under "System variables".
  5. With the "New" button in the PATH editor, include C:\Program Files\Git\bin\ and C:\Program Files\Git\cmd\ to the end of the list.
  6. Close and re-open your console.

Modifying PATH on Windows 7:

  1. Right-click "Computer" on the Desktop or Start Menu.

  2. Choose "Properties".

  3. On the very far left, click the "Advanced system settings" link.

  4. Click the "Environment Variables" button at the bottom.

  5. Double-click the "Path" entry under "System variables".

  6. At the end of "Variable value", insert a ; in case there is not meanwhile one, and then C:\Program Files\Git\bin\;C:\Program Files\Git\cmd\. Do not put a space between ; and the entry.

  7. Close and re-open your console.

or Follow this steps

  1. Go to My Computer => Local Disk(C:) => Program Files(x86) => Git => cmd
  2. Right Click On the git => Select Properties
  3. Beneath the location Copy the text eg - C:\Program Files (x86)\Git\cmd
  4. Come back to the Desktop
  5. Right-click My Computer
  6. Choose property
  7. Open Advanced
  8. Click Environment Variables
  9. In the System variables Find the Variable call Path
  10. Click on the variable
  11. Click the Edit Button
  12. Choose the Variable value Text Box .
  13. Go to the edge of the text and put semicolon(;)
  14. Then Right-click and press Paste
  15. Press Ok

In case you are employing GitHub for Windows (GitHub's old Git GUI that is no longer available for download, not the new Electron-based GitHub Desktop), you have an installation of Git under:

C:\Users\<YOUR USERNAME>\AppData\Local\GitHub\PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7\cmd

Extend this path, and include it to PATH.

10 6 4
31,120 points

Related questions

0 votes
1 answer 2.5K views
2.5K views
Problem : Currently I am using the windows server 2008 os. I download the composer setup.exe and install it to my PC . But when I try to install composer. I face below error: 'composer' is not recognized as an internal or external command, eg:- 'composer' is not recognized as an internal or external command, operable program or batch file.
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
1 answer 113 views
113 views
Problem : I am facing following MinGW issue: 'gcc' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 65 views
65 views
Problem : Facing following Node.Js error 'npm' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 461 views
461 views
Problem : I have Windows 7 and tried to use the 'make' command but getting following error 'make' is not recognized as an internal or external command, operable program or batch file.
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 29 views
29 views
Problem: Hi: I am returning after a little break. I was examining and rehearsing Java these days routinely. I've enlisted myself in an online course to comprehend things in a superior manner. I believe it's helping me somewhat more. Anyway, today I've inquiry with respect to change in Java. I am understanding the java concept of internal and external command.
asked Nov 2, 2020 Mashhoodch 6.1k points
0 votes
2 answers 52 views
52 views
Hello colleagues, I really want to know How To Solve 'python' is not recognized as an internal or external command, operable program or batch file error. Thanks
asked Oct 23, 2020 psandprop 2.4k points
0 votes
1 answer 29 views
29 views
I installed WAMP on my computer. After the installation, I created my first php file. I wanted to test it by using the command prompt. php test.php But I got this error instead. 'php' is not recognized as an internal or external command, operable program ... don&rsquo;t know what&rsquo;s wrong because I followed the tutorial on how to install WAMP. Any help and guide will be greatly appreciated.
asked Oct 11, 2020 azriel 590 points
0 votes
1 answer 19 views
19 views
When the above error appear in the command prompt and reasons behind it?
asked Oct 6, 2020 jagruthi 680 points
1 vote
1 answer 1.3K views
1.3K views
Problem: I installed flask in my system by running the command: pip install flask Collecting flask Downloading https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB) |████████████████████████████████| ... operable program or batch file. Whats the problem running this can any one tell me? Thanks in advance.
asked May 12, 2020 samhaz 5k points
0 votes
1 answer 84 views
84 views
I am new to python programming. I am using atom IDE or atom editor for my python programs but every time I try to run a code or a script from my atom editor it gives me an error like : atom 'python' is not recognized as an internal or external command, operable ... and atom for 64 bit windows. Can anyone figure out what the problem really is and how can I solve this problem and run my code.
asked Mar 10, 2020 LizzyM 6.1k points