码迷,mamicode.com
首页 > Windows程序 > 详细

win10 右键菜单添加Git Hash Here

时间:2017-01-05 16:59:03      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:git   reg   class   字符   dream   windows   注册表   https   share   

1、通过在“运行”中输入‘regedit’,打开注册表。

2、找到[HKEY_CLASSES_ROOT\Directory\Background]。

3、在[Background]下如果没有[shell],则右键-新建项[shell]。

4、在[shell]下右键-新建项[open in git],其值为“Git Bash Here",此为右键菜单显示名称。(可以直接新建项Git Bash Here)

5、在[shell]下右键-新建-字符串值[Icon],双击编辑,其值为“D:\Tools\VersonCtrs\Git\Git\mingw64\share\git\git-for-windows.ico”。此为菜单加图标。

6、在[open in git]下右键-新建-项[command],其值为"D:\Tools\VersonCtrs\Git\Git\bin\bash.exe" --login -i。

7、reg文件导出,包括删除和添加。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Git Hash Here]
"Icon"="C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico"
@="Git Hash Here"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Git Hash Here\command]
@="\"C:\\Program Files\\Git\\bin\\bash.exe\" --login -i"

删除

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\Background\shell\Git Hash Here]

 

 

参考:

https://www.zhihu.com/question/48091139/answer/109144599

http://www.bubuko.com/infodetail-1263581.html

http://www.cnblogs.com/JoshuaDreaming/archive/2011/12/01/2270254.html

win10 右键菜单添加Git Hash Here

标签:git   reg   class   字符   dream   windows   注册表   https   share   

原文地址:http://www.cnblogs.com/kissfu/p/6252518.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!