"Git bash here" and "Git GUI here" not working on Windows 10
Solution 1
I'm not sure what caused it, but it looks like the installer put the application in the wrong place (C:\Program Files (x86)\
instead of C:\Program Files\
) and set the registry paths wrong.
My solution was to completely uninstall, delete all related registry entries and then re-install. After that everything is working fine. I suspect a bug in the installer that is dependent on specific options being selected.
Solution 2
Delete following entries With regedit from Run Menu:
- HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell
- HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui
After this Reinstall application it will come .
It works for me.
Alternate option is also http://www.hoverdroids.com/errors/git/git-gui-here-and-git-bash-here-doesnt-work-resolved/
Comments
-
Captain Whippet almost 2 years
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.
Update
I found this answer which nearly helped me find the problem and the solution.
With
regedit
I was able to see that theHKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell\command
was pointing to my user folder, instead of the actual location of git: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?
-
Captain Whippet over 5 years@TimBiegeleisen but the answer didn't work so it's just something I tried. Or am I misunderstanding?
-
Tim Biegeleisen over 5 yearsNvm...I thought you found the answer, but then put it in your question.
-
Captain Whippet over 5 yearsHmm a downvote - I wonder why I got that? Would be interested to hear how I could improve the question.
-
Tim Biegeleisen over 5 yearsI countered your downvote, but it probably happened because of the slew of deleted quality answers below.
-
Captain Whippet over 5 yearsThanks @TimBiegeleisen.
-
-
PeteC over 5 yearsI found the root cause of the problem. Please go to regedit:Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor. Check AutoRun. In my environment it has "cd /d H:\". After deleting that AutoRun the problem is gone. You don't need to fiddle with .bash_profile.
-
jla over 3 yearsBe sure to search for all occurrences. Just deleting it from that path didn't fix it for me. Uninstalling, deleting git_gui and git_shell from all paths in the registry then installing did.