don't know the same will workout for you. Open the git bash and execute below commands. Take a backup : copy the sh.exe file into old-sh.exe and delete the sh.exe file Input the following two commands correctly one by one and hit enter after each of them. Type cmd in the search box and right click on Command Prompt. So Run DISM commands and sfc /scannow can fix corrupted files so that fix your problem. Resolve the problems with the sh commands. The conflict system files may causes settings won’t open in Windows 10. 'C:\Program Files\Git\bin\bash.exe' -login -i' 'C:\Program Files\Git\bin\sh.exe' -login -i' Right click and open properties dialog of the Git Bash short cut located in your desktop or in your start menu (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Git\Git Bash.lnk in my PC), you will see the below Target in the 'Short cut' tab. all you need to do is use bash as your shell script parser instead of sh. I tried by reinstalling the git bash but re installation not works for me.it is due to the permission issue with the shell script parser sh.exe file. Apart from the system environment variables, you would also need. Solution 2: Check Windows 10 Registry Editor Type. It is useful that you struggle to modify the settings of system. I have to face the same problem when upgraded my windows from 7 to 10. How to Fix Command Prompt Cannot Run CMD Commands Windows 10 Solution 1: Edit the System Environment Variables.