git 刪除右鍵菜單

轉載 轉載鏈接:http://blog.csdn.net/songques/article/details/8488061

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章