title: how to set google-chrome as git default browser
body: <p>I want <strong>GIT</strong> 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.</p>
  
  <pre><code>[web]
      browser = chrome
  [browser "chrome"]
      cmd = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
      path = C:/Program Files (x86)/Google/Chrome/Application/
  </code></pre>
  
  <p>But it still opens IE browser. In git's bash environment it gives the message <code>"Launching default browser to display HTML ..."</code>.  On Git Gui, it throws a lengthier message</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>Could someone help me resolve this?</p>
  
  <p><strong>EDIT:</strong> Also tried</p>
  
  <pre><code>[web]
      browser = chrome
  [browser "chrome"]
      path = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
  </code></pre>
  
  <p>Now I am able to open online documentation in chrome from Git Gui. But it does not work in git bash.</p>