How to remove git from menu context in Documents?

Dawid Dave Kosiński picture Dawid Dave Kosiński · Nov 2, 2017 · Viewed 16k times · Source

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 didnt 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).

Did someone have a similar problem? Could someone help?

Answer

Benyamin Limanto picture Benyamin Limanto · Mar 13, 2018

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.