轉載 轉載鏈接:http://blog.csdn.net/songques/article/details/8488061
首先,我表示git默認的右鍵菜單很煩,太多項了,而我們平時用的最多的無非是一個Git Bash!刪除msGit右鍵菜單如果是windows 64位系統cmd進入"C:\Program Files (x86)\Git\git-cheetah"目錄,運行
-
regsvr32 /u git_shell_ext64.dll
如果是windows 64位系統cmd進入"C:\Program Files\Git\git-cheetah"目錄,運行
-
regsvr32 /u git_shell_ext.dll
可註銷右鍵菜單。但全都給清除了也不方便每次要開始菜單中找一下,那我們就再在右鍵菜單中添加Git Bash註冊表如下:如果是windows 64位系統
-
Windows Registry Editor Version 5.00
-
;添加Git Bash(&Q)右鍵菜單
-
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
-
@="Git Bash(&Q)"
-
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
-
@="C:\\Windows\\SysWOW64\\cmd.exe /c \"\"C:\\Program Files (x86)\\Git\\bin\\sh.exe\" --login -i\""
如果是windows 32位系統
-
Windows Registry Editor Version 5.00
-
;添加Git Bash(&Q)右鍵菜單
-
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
-
@="Git Bash(&Q)"
-
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
-
@="C:\\Windows\\system32\\cmd.exe /c \"\"C:\\Program Files\\Git\\bin\\sh.exe\" --login -i\""