Right click git can't find the application

One: Problem description
Right-click the folder and open it with GitBash.

At this time, the icon is incorrect, and it shows that Git bash cannot find the application

Two: Cause of the problem The
storage path was modified after installing Git

Three: Solution
1. Win+r open the command line window, enter "regedit" to open the registry
Insert picture description here
2. Find [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell\command] and [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory \background\shell\git_gui\command] change the path of the file in the current Git bash and Gitgui path

Insert picture description here
3. Change the path of the files in [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell\command] and [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_gui\command] to the current Git bash and Gitgui pathInsert picture description here

4. Close the registry

Guess you like

Origin blog.csdn.net/mid_Faker/article/details/110264900