brew update failure while executing git checkout

后端 未结 5 1676
青春惊慌失措
青春惊慌失措 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:36

    What solved Homebrew git errors for me was simply to cd ~ and run brew update in my home directory. The command failed when I was in a folder shared on GitHub. Also, clang magically appeared again from brew config after cd ~.

提交回复
热议问题