Inside these paths
HKEY_CLASSES_ROOT\Directory\Background\shellHKEY_CLASSES_ROOT\Directory\shell
you can add special parameters
- name 
HideBasedOnVelocityId, typeDWORD32, hex value006698a6(hides the menu item everywhere) - name 
Extended, type string (hides the menu item only when just right-clicking mouse, withShift+RightMouseButtonclick, it will show again) 
- In path 
HKEY_CLASSES_ROOT\Directory\shell\git_guiadd rowExtended. - And now item ctx menu 
Git GUI Herewill be shown only when youShift+RightMouseButtonclick.