Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 948
Dawid Dave Kosiński Avatar asked Nov 02 '17 20:11

Dawid Dave Kosiński


People also ask

How do I remove something from the Windows context menu?

Click on Tools > Startup and click on the Context Menu tab. Right-click any entry, and you can disable or delete it. You can also save to a text file or open in Regedit or the folder that it resides in.

How do I close git GUI?

I start git gui& ; I close the console window or press Ctrl+C.


1 Answers

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.

like image 129
Benyamin Limanto Avatar answered Sep 21 '22 23:09

Benyamin Limanto