我正在尝试将git instaweb设置为在Chrome中打开。我将默认浏览器设置如下:
git config --global web.browser chrome这一变化反映在我的全局.gitconfig中,git-web--browse文档说chrome可以作为传入的东西。
当我运行git instaweb时,我得到的是:
The browser chrome is not available as 'chrome'.
http://127.0.0.1:1234 我也尝试过google-chrome,同样的结果也出现了。如何将web浏览器设置为在chrome中真正打开?
运行OSX 10.8.2
发布于 2013-01-13 07:09:40
也许它需要一个类似于How can I configure git help to use Firefox?的解决方案
git config --global web.browser ch
git config --global browser.ch.cmd "open -a Google Chrome.app"您需要的OP MishieMoo reports的完整路径:
git config --global browser.ch.cmd "open -a \"/Applications/Google Chrome.app\""没有绝对路径的
,它试图在我的当前目录(不是
Applications)中打开Chrome.app
https://stackoverflow.com/questions/14285017
复制相似问题