“Git Bash here” isn't working when right clicking

前端 未结 6 523
甜味超标
甜味超标 2021-02-05 03:38

I dunno how that happened but before today I could right click on any folder and there would be and an option Git Bash here. But today I dont have that option. Anyo

6条回答
  •  一生所求
    2021-02-05 04:02

    Steps if you can't use the reinstall metod.

    Use REGEDIT

    1/ Open regedit (search it if needed)
    2/ Go to 'HKEY_CURRENT_USER/Software/Classes/Directory/Background'
    3/ Create new key 'shell'
    4/ Create new key 'Git bash here' (or whatever name you want to see in the menu)
    5/ Create new key 'command' (must be named command)
    
    At this point point you'll have
    'HKEY_CURRENT_USER/Software/Directory/Background/shell/Git bash here/command'
    
    6/ Edit the value of the command key as follow 'pathToGit/git-bash.exe'
    

    Update or open new windows explorer and you'll see it when right clicking.

    Image to sum this up :

提交回复
热议问题