電腦添加了一塊硬盤,原來git按照路徑由D盤換到了E盤,
右鍵菜單執行git bash命令報找不到應用程序,搜了幾個帖子發現按照修改都不行(均少了一步),特記錄下處理方法,
主要3大步,
1.按win+r,輸入regedit打開注冊表,然后分別修改4個位置路徑由d盤改為e盤,
2.修改如下四處路徑
HKEY_CLASSES_ROOT\Directory\shell\git_gui
HKEY_CLASSES_ROOT\Directory\shell\git_gui\command
HKEY_CLASSES_ROOT\Directory\shell\git_shell
HKEY_CLASSES_ROOT\Directory\shell\git_shell\command
3.修改如下四處路徑
計算機\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui
計算機\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui\command
計算機\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell
計算機\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell\command
