I recently installed Git for Windows on Windows 8.1. In Git Bash, when I run help commands, such as git help diffor git diff --help, the corresponding .html help file opens in a program associated with the .html file extensions, regardless of mine help.browserand web.browserGit.
My git configuration:
git config --global help.browser chrome
git config --global web.browser chrome
My default Windows file extension association:
.html opens with Sublime Text
So, git diff --helpin Git Bash, it opens git -diff.html in Sublime Text. I want it to open in Chrome.
The source of this may be another problem: when I execute a 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 - view documentation: http://git-scm.com/docs/git-web--browse.html
I found this question: How to configure Git help to use Firefox? but it didn’t help me (perhaps because I am 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 help files in Chrome instead of Sublime Text?
source
share