I am trying to fix some brew doctor error but now after manually erased some files that brew doctor suggested I get the following error when trying to do a brew update :
error: cannot open .git/FETCH_HEAD: Permission denied
Error: Failed to update tap: homebrew/versions
Already up-to-date.
sudo
for the update?/usr/local/.git
? Sounds like you're perhaps sharing a machine and someone else updated homebrew and, in the course of doing that, took ownership of the/usr/local
directory tree.