Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Git bash here" and "Git GUI here" not working on Windows 10

I just installed Git for Window version 2.18.0 64-bit on a new Windows 10 machine (Win 10 Enterprise).

When I right-click in explorer and choose 'Git Bash Here' or 'Git Gui Here' I see an 'Application Not Found' error pop up.

enter image description here

Update

I found this answer which nearly helped me find the problem and the solution.

With regedit I was able to see that the HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell\command was pointing to my user folder, instead of the actual location of git:

enter image description here

For "Git Bash Here", I changed the value to "C:\Program Files (x86)\Git\git-bash.exe" "--cd=%1"

Similarly for "Git GUI here", I changed the value for the HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui\command to "C:\Program Files (x86)\Git\cmd\git-gui.exe" "--working-dir" "%1"

However, I still see the 'Application Not Found' error. Any ideas how to fix this?

like image 372
Captain Whippet Avatar asked Oct 22 '25 03:10

Captain Whippet


1 Answers

Delete following entries With regedit from Run Menu:

  1. HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell
  2. HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui

After this Reinstall application it will come .

It works for me.

Alternate option is also to change the registry manually. Note, you don't actually need to download anything. Just open regedit, use Ctrl+F to find occurrences of "git_shell", and change the paths on each occurrence found, as well as on the sibling "git_gui" keys and their children "command" keys. Restart explorer.exe if needed.

like image 116
ASHWANI PANDEY Avatar answered Oct 23 '25 18:10

ASHWANI PANDEY