新建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:\\git\\install\\Git\\mingw64\\share\\git\\git-for-windows.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
@="D:\\git\\install\\Git\\git-bash.exe"
1.新建gitreg.txt 并写入代码,注意替换自己git的路径
![](https://img-blog.csdnimg.cn/75977365b3194149991b0216fb6ca03b.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAYmluOTE1Mw==,size_20,color_FFFFFF,t_70,g_se,x_16)
?2. 保存文件,把? .txt 改成 .reg
![](https://img-blog.csdnimg.cn/a53713c536224f568da26c9bc66c8218.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAYmluOTE1Mw==,size_11,color_FFFFFF,t_70,g_se,x_16)
?3.修改后
![](https://img-blog.csdnimg.cn/75e7bfb4991940b38c0380402815ce9c.png)
4. 双击这个文件
![](https://img-blog.csdnimg.cn/f2b7651449e94ab0a37d6f66f4da6c4e.png)
?
5.添加成功?
添加成功
![](https://img-blog.csdnimg.cn/cdff358a173d450797997731fe25e814.png)
|