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

前端 未结 6 525
甜味超标
甜味超标 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:01

    HOW TO FIX WITHOUT RE-Installing:

    I got this problem after moving all my programs off of my main hard drive and pasting them into my "P" drive. But kept all of the directory structures the same.

    Git was moved from:
    C:\DEV\PROG\GIT
    TO:
    P:\DEV\PROG\GIT

    1: Open The Registry Editor: Type "regedit" in start menu search and hit enter.

    2: Find the context menu shortcut configuration for "git bash here" In regedit: Menu "Edit" > "Find" > "Find what" and enter "git_shell"

    3: Edit the Data value so that path points to the correct location. In my case I changed:

    "C:\DEV\PROG\GIT\git-bash.exe" "--cd=%v."
    TO:
    "P:\DEV\PROG\GIT\git-bash.exe" "--cd=%v."
    Screen shot included below.
    

提交回复
热议问题