registryexplorerright-clickgit-for-windows

How to remove git from menu context in Documents?


I have a little question: How can I remove the "git bash here" and "git gui here" from my menu context in my Documents directory?

I have tried:

  1. Reinstalling the Git-2.15.0-64-bit with unchecked options.
  2. Removing the keys from:
[-HKEY_CLASSES_ROOT\Directory\background\shell\git_gui]
[-HKEY_CLASSES_ROOT\Directory\background\shell\git_shell]
[-HKEY_CLASSES_ROOT\Directory\Shell\git_gui]
[-HKEY_CLASSES_ROOT\Directory\Shell\git_shell]

I didn't have the git_gui and git_shell in HKEY_LOCAL_MACHINE.

Removing the keys gave me a good result -> Git isn't appearing in most of my directories but it still appears in my Documents (the place where I have all my projects from NetBeans to Android Studio).

Does anyone have a similar problem? Could someone help?


Solution

  • I Think I've found other reference about it. I've delete mine on

    HKEY_CLASSES_ROOT\LibraryFolder\background\shell
    

    Based on https://stackoverflow.com/a/32490883/4906348, Quite simple, I never think about it. You should see like this.

    The Git Bash here on Library Background

    From This Before Registry delete

    To This. It works. After Registry Delete

    Note
    For Windows 10, there may be also keys in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell and/or HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell which you may have to delete as well.