What is ‘GIT is not recognized as external or internal command’ error?
If you are facing GIT is not recognized as external or internal command error in Windows 10 computer when you try to run a git command in Command Prompt, and looking for ways to fix, then you are in right-place for the solution. Here, you are provided with easy steps/methods to resolve the issue. Let’s starts the discussion.
‘GIT is not recognized as external or internal command’ error:
‘GIT’: GIT is free and open-source software for distribution version control, tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. GIT is available for POSIX, Linux, macOS, Solaris, AIX, and Microsoft Windows OS based devices. Its purpose includes speed, data integrity, and support for distributed, non-linear workflows.
However, several users reported they faced GIT is not recognized as external or internal command error in Windows 10 computer when they tried to run GIT command in Command Prompt. This issue indicates Windows computer is unable to recognize GIT in computer neither as external nor internal command. The possible reasons behind the issue can be the Git path that is not set as Variables, CMD was opened during the installation of GIT. It is possible to fix the issue with our instructions. Let’s go for the solution.
How to fix GIT is not recognized as external or internal command error in Windows 10?
Method 1: Fix GIT is not recognized as external or internal command error with ‘PC Repair Tool’
‘PC Repair Tool’ is easy & quick way to find and fix BSOD errors, DLL errors, EXE errors, problems with programs/applications, malware or viruses infections in computer, system files or registry issues, and other system issues with just few clicks.
Method 2: Restart Command Prompt
This issue can be occurred due to some temporary issue with Command Prompt app. You can restart Command Prompt app to fix the issue.
Step 1: Close Command Prompt app completely
Step 2: Now, type ‘cmd’ in Windows Search Box and press ‘CTRL + SHIFT + ENTER’ keys on keyboard to open ‘Command Prompt as Administrator’, and retry running GIT command and check if the issue is resolved.
Method 3: Reinstall GIT for Windows
You can also try to fix the issue by uninstalling and reinstall GIT in computer.
Step 1: Open ‘Control Panel’ app in Windows PC via Windows Search Box
Step 2: Find and select ‘GIT for Windows’ app, and select ‘Uninstall’ to uninstall it and after that, restart your computer
Step 3: After restart, visit ‘https://gitforwindows.org/’ page in browser and download ‘GIT for Windows’ of latest version in computer
Step 4: Once downloaded, double-click downloaded setup and follow on-screen instructions to finish installation. When you get ‘Adjusting your PATH environment’ window, select ‘GIT from the command line and also from third-party software’, and hit ‘Next’
Step 5: Once done, restart your computer and check if the issue is resolved.
Method 4: Configure GIT Path manually
Another way to fix the issue is to configure GIT path manually in computer.
Step 1: Open ‘File Explorer’ app in Windows PC and go to following path
C:\Program Files\git\cmd
C:\Program Files (x86)\git\cmd
Step 2: Right-click ‘git.exe’, and select ‘Properties’, and copy the location
Step 3: Now, press ‘Windows + R’ keys on keyboard, type ‘sysdm.cpl’ in ‘Run’ window and hit ‘Ok’ button to open ‘System Properties’
Step 4: Click ‘Advanced’ tab, select ‘Environment Variables’, and under ‘System Variables’, select ‘Path’ and click ‘Edit’
Step 5: Click ‘New’ button and paste the location you copied from above steps, and then hit ‘Enter’ to create the path, and then hit ‘Ok’ button to save the changes and check if the issue is resolved.
Conclusion
I am sure this article helped you on How to fix GIT is not recognized as external or internal command error with easy ways. You can read & follow our instructions to do so. That’s all. For any suggestions or queries, please write on comment box below.