brew update failure while executing git checkout

后端 未结 5 1790
青春惊慌失措
青春惊慌失措 2021-01-30 07:07

After an interrupted brew update because of a network issue, Homebrew appears to be broken:

$ brew update
error: pathspec \'master\' did not match a         


        
5条回答
  •  情书的邮戳
    2021-01-30 07:27

    In my case, I had just upgraded to OS X El Capitan and none of the other solutions worked.

    I took note of the packages in /usr/local/Cellar and then deleted the Cellar folder and started with a fresh install.

    rm -rf /usr/local/Cellar
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
    

    Then I brew installed the packages again.

提交回复
热议问题