Windows 7 のデフォルト ブラウザは他の理由で変更できない IE ですが、デフォルトで GIT が Chrome ブラウザでヘルプ ページを開くようにします。git config ファイルに以下を追加しました。
[web]
browser = chrome
[browser "chrome"]
cmd = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
path = C:/Program Files (x86)/Google/Chrome/Application/
しかし、それでもIEブラウザが開きます。git の bash 環境では、メッセージが表示されます"Launching default browser to display HTML ..."
。Git Gui では、より長いメッセージがスローされます
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)
誰かがこれを解決するのを手伝ってくれますか?
編集:また試しました
[web]
browser = chrome
[browser "chrome"]
path = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
これで、Git Gui から Chrome でオンライン ドキュメントを開くことができます。ただし、git bash では機能しません。