Created
August 22, 2021 11:40
-
-
Save albertopasqualetto/cc61addb490b4dd8c94038f421870a1c to your computer and use it in GitHub Desktop.
Removes "git here" in contextual menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\shell\git_gui] | |
[-HKEY_CLASSES_ROOT\Directory\shell\git_shell] | |
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\git_gui] | |
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\git_shell] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell] | |
; .bat version below | |
; :: Source: https://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file | |
; :: Source: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights | |
; :: batch code to request admin previleges, if no admin previleges | |
; net session >nul 2>&1 | |
; if NOT %errorLevel% == 0 ( | |
; powershell start -verb runas '%0' am_admin & exit /b | |
; ) | |
; | |
; reg delete HKCR\Directory\shell\git_shell /f | |
; reg delete HKCR\Directory\shell\git_gui /f | |
; reg delete HKCR\LibraryFolder\background\shell\git_shell /f | |
; reg delete HKCR\LibraryFolder\background\shell\git_gui /f | |
; reg delete HKLM\SOFTWARE\Classes\Directory\background\shell\git_gui /f | |
; reg delete HKLM\SOFTWARE\Classes\Directory\background\shell\git_shell /f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment