I want GIT to open the help pages in Chrome browser by default though the Windows 7 default browser is IE which I can't change for other reasons. I have added the following to the git config file.
[web]
browser = chrome
[browser "chrome"]
cmd = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
path = C:/Program Files (x86)/Google/Chrome/Application/
But it still opens IE browser. In git's bash environment it gives the message "Launching default browser to display HTML ..."
. On Git Gui, it throws a lengthier message
The browser chrome is not available as 'C:/Program Files (x86)/Google/Chrome/Application/'.
The browser chrome is not available as 'C:/Program Files (x86)/Google/Chrome/Application/'.
while executing
"exec {C:/Program Files (x86)/Git/bin/sh.exe} {C:/Program Files (x86)/Git/libexec/git-core/git-web--browse} {file:C:/Program Files (x86)/Git/doc/git/ht..."
("eval" body line 1)
invoked from within
"eval exec $opt $cmdp $args"
(procedure "git" line 23)
invoked from within
"git "web--browse" $url"
(procedure "start_browser" line 2)
invoked from within
"start_browser {file:C:/Program Files (x86)/Git/doc/git/html/index.html}"
(menu invoke)
Could someone help me resolve this?
EDIT: Also tried
[web]
browser = chrome
[browser "chrome"]
path = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
Now I am able to open online documentation in chrome from Git Gui. But it does not work in git bash.