我刚刚安装了最新的homebrew 2.7.3版本的自制软件。我在Mac上预安装了git,我尝试安装brew install git-crypt & brew install git-gui时,遇到致命错误:Mac‘t resolve HEAD to a revision。看起来它在任何包上都失败了。
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "git-crypt".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.我尝试卸载,然后使用它们的命令行重新安装homebrew:https://github.com/homebrew/install#uninstall-homebrew
通过运行brew doctor,我收到了一些警告:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master我检查了这个目录
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core并意识到没有公式文件夹。
任何帮助都将不胜感激。
发布于 2021-05-07 20:06:31
我犯了这个错误,解决了这个问题
git -C $(brew --repo homebrew/core) checkout masterhttps://stackoverflow.com/questions/65673376
复制相似问题