How can I configure git help to use Firefox?

后端 未结 2 713
南笙
南笙 2020-12-11 08:00

I was using Git on a Windows box and the git bash always used the web version for help. I really liked this and I am trying to do the same on my mac.

I ran:

相关标签:
2条回答
  • 2020-12-11 08:36

    I guess you can't override the command for a known browser. What worked is using a browser name that is not firefox:

    git config --global web.browser ff
    git config --global browser.ff.cmd "open -a Firefox.app"
    
    0 讨论(0)
  • 2020-12-11 08:39

    I'm not an OS X user, but I suppose that the shell doesn't let you pass a multi-word argument without escaping it.

    Edit directly your ~/.gitconfig file and insert the following [web] section:

    [web]
        browser = open -a Firefox.app 
    
    0 讨论(0)
提交回复
热议问题