【发布时间】:2019-01-29 17:20:06
【问题描述】:
我正在尝试在最近更新为 Mojave 的 MacOS 上安装 OpenJdk 8。安装命令是
brew tap AdoptOpenJDK/openjdk
这会导致以下错误:
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
error: could not lock config file .git/config: Permission denied
Cannot rebase: You have unstaged changes.
Please commit or stash them.
但是当我在 /usr/local/Homebrew 目录中执行“git status”时,它会显示“没有什么可以提交,工作树清理”。
我查看了/Homebrew 下隐藏的 .git 目录。就在昨天之前,它已经一年没碰过了。我一般不会弄乱它,也有一段时间没有用它来安装任何东西了。
【问题讨论】: