新建text文件,複製以下代碼
替換我這邊文件路徑D:\\System
爲自己的路徑,其他一般都不變
然後保存,更改後綴名爲reg
,雙擊打開即可
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
@="Git Bash Here"
"icon"="D:\\System\\Git\\mingw64\\share\\git\\git-for-windows.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
@="D:\\System\\Git\\git-bash.exe"