git gui not working after installing in Mac (e.g. Mountain Lion)

前端 未结 9 749
野趣味
野趣味 2021-01-30 02:07

When I ran git gui, I got this:

$ git gui
git: \'gui\' is not a git command. See \'git --help\'.

Did you mean one of these?
    grep
    init
    p         


        
9条回答
  •  走了就别回头了
    2021-01-30 02:40

    Edit your git config to an add an entry for gui in the alias section

    nano ~/.gitconfig
    

    [alias]

    gui = !sh -c '/usr/local/git/libexec/git-core/git-gui'

    Edit 2020

    It looks like the path in the original answer is now obsolete. Updated instructions:

    [alias]

    gui = !sh -c '/usr/local/opt/git/bin/git gui'

提交回复
热议问题