I'm trying to install OpenJdk 8 on a MacOS recently updated to Mojave. The install command was
brew tap AdoptOpenJDK/openjdk
It results in the following error:
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.
But when I do 'git status' from within the /usr/local/Homebrew directory, it says 'nothing to commit, working tree clean'.
I looked at the hidden .git directories under/Homebrew. Before yesterday, it hadn't been touched in a year. I don't generally mess with it and haven't used it to install anything in awhile.