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

12,439

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:

  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 http://www.hoverdroids.com/errors/git/git-gui-here-and-git-bash-here-doesnt-work-resolved/

Share:
12,439
Captain Whippet
Author by

Captain Whippet

@captain_whippet

Updated on June 23, 2022

Comments

  • Captain Whippet
    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.

    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?

    • Captain Whippet
      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
      Tim Biegeleisen over 5 years
      Nvm...I thought you found the answer, but then put it in your question.
    • Captain Whippet
      Captain Whippet over 5 years
      Hmm a downvote - I wonder why I got that? Would be interested to hear how I could improve the question.
    • Tim Biegeleisen
      Tim Biegeleisen over 5 years
      I countered your downvote, but it probably happened because of the slew of deleted quality answers below.
    • Captain Whippet
      Captain Whippet over 5 years
      Thanks @TimBiegeleisen.
  • PeteC
    PeteC over 5 years
    I found the root cause of the problem. Please go to regedit:Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Comma‌​nd 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
    jla over 3 years
    Be 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.