zoukankan      html  css  js  c++  java
  • win10 右键菜单添加Git Hash Here

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

    2、找到[HKEY_CLASSES_ROOTDirectoryBackground]。

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

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

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

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

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

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellGit Hash Here]
    "Icon"="C:\Program Files\Git\mingw64\share\git\git-for-windows.ico"
    @="Git Hash Here"
    
    [HKEY_CLASSES_ROOTDirectoryBackgroundshellGit Hash Herecommand]
    @=""C:\Program Files\Git\bin\bash.exe" --login -i"

    删除

    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOTDirectoryBackgroundshellGit 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

  • 相关阅读:
    SpringCloud组件---Ribbon
    SpringCloud组件---Eureka
    tomcat及Jetty远程调试debug
    mysql 删除重复数据
    mysql执行SQL语句时报错:[Err] 3
    线程池原理剖析
    上限下限
    线程池Executors、Callable与Future的应用
    spring获取bean(自定义工具类)
    java.util.concurrent.Exchanger应用范例
  • 原文地址:https://www.cnblogs.com/kissfu/p/6252518.html
Copyright © 2011-2022 走看看