I have newly installed Git for Windows on Windows 8.1. In Git Bash, when I run help commands like git help diff
or git diff --help
the corresponding .html help file will open in the program I have associated with .html file extensions, regardless of my help.browser
and web.browser
Git configuration properties.
My Git configuration:
git config --global help.browser chrome
git config --global web.browser chrome
My Windows Default Programs file extension association: .html opens with Sublime Text
So, git diff --help
in Git Bash opens git-diff.html in Sublime Text. I want it to open in Chrome.
The source of this might be another problem: when I do the command git web--browse URL/FILE
(e.g. git web--browse index.html
) I get
$ The browser chrome is not available as 'chrome'
git-web--browse documentation: http://git-scm.com/docs/git-web--browse.html
I found this question: How can I configure git help to use Firefox? but that didn't work for me (maybe because I'm running Windows). I tried this:
git config --global help.browser chr
git config --global browser.chr.cmd "start chrome"
Does anyone know of a solution that will allow me to open the help files in Chrome instead of Sublime Text?