• Home /
  • windows /
August 4, 2022

Fix ‘git’ is Not Recognized as an Internal or External Command

Fix ‘git’ is Not Recognized as an Internal or External Command Revised

Are you an aspiring Developer? If so, then, you must be aware of the Git software used by developers working for the same company. One of the errors associated with this software is ‘git’ is not recognized as an internal or external command, operable program or batch file message. There are various reasons for which the error message pops up on your PC and you might be perplexed by this error message. This article provides the methods to fix the git is not recognized as an internal or external command error message on Windows 10 PC.

Fix ‘git’ is Not Recognized as an Internal or External Command Revised

 

How to Fix ‘git’ is Not Recognized as an Internal or External Command

The Git software is created by Linus Torvalds, who is responsible for the development of the Linux kernel, in 2005.

  • The Git software is a DevOps tool that is used for source code management.
  • The software creates a copy of the code developed by the developers locally on the PCs.
  • This allows the developers to create backups of their code and also track the changes in the source code.
  • This way, regular communication between the developers is established, and the developers can work together on non-linear development.
  • The main advantage of this software is that it is free and open-source software.
  • This Control system allows the developers to handle small to very large projects efficiently.

What Causes ‘git’ is Not Recognized as an Internal or External Command Error?

The list of causes for the error message with the Git software are listed below as:

  • Git Software is not installed on your PC– The Git software might have not been installed on your PC.
  • Issues with Command Prompt app– The Command Prompt app might be either open during the installation process or might have not been reloaded after the installation. In this case, the Command Prompt app cannot access the Git software.
  • Git Path is unavailable or not set on your PC– The Location path for the Git software might not be set or is missing from your PC.

Method 1: Restart Command Prompt

The basic troubleshooting method to fix the error is to restart the Command Prompt app on your PC.

Step I: Close Command Prompt App

The first step is to close all the instances of the Command Prompt app using the Task Manager app.

1. Press the Ctrl+ Shift+ Esc keys at the same time to open the Task Manager app.

2. Select the Windows Command Processor app in the Apps section and click on the End Task button.

Select the Windows Command Processor app in the Apps section and click on the End Task button

Step II: Launch Command Prompt App

The next step is to launch the Command Prompt app on your PC and activate the git command on the app. Check if git is not recognized as an internal or external command error message is fixed.

1. Press the Windows key, type Command Prompt and click on the Open option to launch the Command Prompt app.

Note: Alternatively, you can click on the Run as Administrator option if you cannot use the Command Prompt app.

launch the Command Prompt as an Administrator

2. Type the git command and press the Enter key.

Also Read: How to Fix Git Merge Error

Method 2: Manually Add Variable Path

The next step to fix the error is to add the variable path of the Git software manually to your PC.

Step I: Copy Location Path of git.exe File

As a first step, you have to copy the location path of the executable file of the Git software from the download location in Windows Explorer.

1. Open the Windows Explorer using the Windows+ E keys and navigate to the cmd folder using the location path as

This PC > Local Disk (C:) > Program Files (x86) > Git > cmd

Note: The above path is valid for the x86 architecture Windows PC. If you are using the x64 version, use the location path as

This PC > Local Disk (C:) > Program Files > Git > cmd

Open the File Explorer and navigate to the cmd folder. Fix git is Not Recognized as an Internal or External Command

2. In the cmd folder, right-click on the git.exe file and click on the Properties option in the list.

click on the Properties option in the list

3. In the General tab, copy the default location in the Location section using the Ctrl+ C keys.

In the General tab copy the default location in the Location section. Fix git is Not Recognized as an Internal or External Command

Also Read: Fix Not Enough Storage is Available to Process this Command

Step II: Set Path in System Properties

The next step is to set the path of the Git software or add the variable path manually to your PC using the System Properties. This allows you to fix the git is not recognized as an internal or external command, operable program or batch file error message.

1. Press the Windows + R keys together to open the Run dialog box.

2. Type the sysdm.cpl in the Open bar, and click on the OK button.

type the sysdm.cpl and click on the OK button

3. In the System Properties, navigate to the Advanced tab and click on the Environment Variables… button.

navigate to the Advanced tab and click on the Experimental Variables… button

4. Select the Path entry in the System variables section and click on the Edit… button.

Select the Path entry in the System variables section and click on the Edit… button. Fix git is Not Recognized as an Internal or External Command

5. Click on the New button on the Edit environment variables screen.

Click on the New button

6. Press the Ctrl + V keys together to paste the copied location from the git Properties window and click on the OK button.

paste the copied location from the git Properties window and click on the OK button. Fix git is Not Recognized as an Internal or External Command

7. Click on the OK button on the Environmental Variables window.

Click on the OK button on the Environmental Variables window

8. Finally, click on the Apply and OK buttons on the System Properties window.

Click on the Apply and OK buttons on the System Properties window. Fix git is Not Recognized as an Internal or External Command

Method 3: Reinstall Git Software

The last method to fix git is not recognized as an internal or external command, operable program or batch file error is to reinstall the Git software on your PC.

Step I: Uninstall GIT Software

As a first step, you have to uninstall the Git software installed on your PC using the Control Panel app.

1. Hit the Windows key, type Control Panel and click on Open.

launch the Control Panel app

2. Set View by > Category, then in the Programs section, click on the Uninstall a Program option.

click on the option Uninstall a program in the Programs category. Fix git is Not Recognized as an Internal or External Command

3. Select the GIT app and click on the Uninstall button at the top bar.

4. Follow the on-screen instructions to uninstall the GIT app and Restart your PC from the START menu.

Select restart

Also Read: Fix Command Failed With Error Code 1 Python Egg Info

Step II: Reinstall GIT Software

The next step is to install the latest version of the Git software from your default web browser on your PC.

1. Press the Windows key, type Google Chrome, then click on Open.

launch the Google Chrome app. Fix git is Not Recognized as an Internal or External Command

2. Open the official website of the Git-Downloads and click on the Download for Windows button in the Downloads section.

Open the official website of the Git Downloads and click on the Download

3. Double-click on the executable file of Git to run the file.

4. Leave all the options to default in the on-screen instructions on the installation wizard and click on the Next button.

5. In the Adjusting your PATH environment window, select Git from the command line and also from the 3rd-party software option and click on the Next button.

Note: This option sets the variable path of the Git software manually on your PC.

6. Follow the instructions on further windows and click on the Install button on the Configuring experimental options window.

7. Finally, reboot your PC and now you will be able to run the command directly from the Command Prompt app.

launch the Command Prompt as an Administrator. Fix git is Not Recognized as an Internal or External Command

Recommended:

The methods to fix git is not recognized as an internal or external command, operable program or batch file error message are given in this article. Please leave your suggestions are queries on the error message in the Comments.