【发布时间】:2021-06-28 15:35:35
【问题描述】:
最近,当我使用任何软件包运行brew install 时,在开始安装之前,Homebrew 总是显示以下与 git 相关的输出。
error: Cannot determine remote HEAD
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
error: Cannot determine remote HEAD
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
备注:只是为了澄清,是的,它是相同的消息打印两次。
(但也许每条消息都与不同的存储库相关)
我尝试对运行 brew doctor 和 brew cleanup 进行一些自动修复,但上述输出仍然显示。
这是什么意思?安装一些软件包后可能发生了一些变化?
你对如何解决这个问题有什么建议吗?
【问题讨论】: