Fix: git is not recognized as an internal or external command, operable program, or batch file error?
Several users report getting the “git’ is not recognized as an internal or external command” error when trying lớn run a git command in Command Prompt. While some users reported that this issue has occurred sometime after they installed Git for Windows, others face this issue as soon as the Git installation is complete.
Bạn đang xem: Fix: git is not recognized as an internal or external command, operable program, or batch file error?

Method 2: Using the Automatic way of adding GIT path lớn Variables
If you want khổng lồ stay away from messing with PATH variables, you can resolve the“git’ is not recognized as an internal or external command” error by using the Git installation GUI to lớn automatically create the Path variables for you. Doing this will enable you khổng lồ use Git from both Git Bash and from Windows Command Prompt.
Here’s a quick guide on uninstalling Git và then configuring the initial installation lớn automatically địa chỉ cửa hàng the path variables for you:
Press Windows key + R to xuất hiện up a Run dialog box. Then, type “appwiz.cpl” và press Enter to mở cửa up the Programs and Features window.



Xem thêm: So Sánh Ip6S Và 6 Plus Và 6S Có Nâng Cấp Gì Hot? Khác Biệt Giữa Iphone 6S Plus Và Iphone 6 Plus
If you’re looking for a method that will resolve the issue without having to uninstall the Git client, move down to the next method below.
Method 3: Adding the variable PATH manually
If you’ve come this far without a result, it is very likely that you’re seeing this particular issue because the Git variable is not configured (or improperly configured) in the Environment Variables.
Luckily, you can configure the Variable value manually by following a mix of instructions. Here’s what you need to do:
Open tệp tin Explorer and navigate lớn the location of the cmd thư mục inside the Git installation. Here are the mặc định paths for x86 & x64 versions:My Computer (This PC) > Local Disk(C:) > Program Files (x86) > Git > cmdMy Computer (This PC) > Local Disk(C:) > Program Files > Git > cmdNext, right-click on git.exe & choose Properties. Then, in the General tab of git.exe Properties, copy the location of the executable (we’ll need it later).





