手动添加git到目录右键菜单

来源:互联网 发布:win10允许软件联网 编辑:程序博客网 时间:2024/05/04 02:01

本文系统windows7

步骤:

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

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

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

4、在[shell]下右键-新建项[open in Git],其值为“Git Bash Here”,此为右键菜单显示名称。

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

6、在[open in git]下右键-新建-项[command],其值为 “D:\Program Files\Git\git-bash.exe”。具体路径,要根据git安装路径决定。

本文资料来自网上,由于原文的描述不太准确,所以改正后发布。资料:http://blog.csdn.net/novav/article/details/53820443