How to change default browser in git BASH shell?

For some reason, when I try to look at git's help pages, they open them in gedit instead of chrome, how do I configure it to start chrome again? I am using the git bash console on Windows 7.

+6
source share
5 answers

Try it with git config --global web.browser chrome .

From the manual:

A web browser can be specified using the help.browser or web.browser configuration variable if the former is not installed. If none of these config, the value of gitweb - viewing the script helper (called by git help) will choose the appropriate one by default. See git -web - view (1) for more information on this.

+9
source

I had the same problem.

Setting web.browser and help.browser did not help me.

That worked on the Win-8 control panel and installed the file types associated with Chrome. I had Notepad ++ related to html files. (I had a good image to publish for visual, but I have no points to upload the image here.)

+4
source

The correct installation method:

 git config --global web.browser chrome 

But sometimes this does not help, so try a slightly different browser id:

 git config --global web.browser google-chrome 

In my case, it helped.

+1
source

problem 187 is similar to your problem and reports a problem with:

Chrome browser and / or html association files: You can try the Doug Knox "HTM / HTML Associations" registry fix

0
source

I solve this using the chrome set as the default application in the settings of Windows Control Panel β†’ programs β†’ defaults β†’.

0
source

Source: https://habr.com/ru/post/886927/


All Articles