Search code examples
macoshomebrewupdatesmacos-catalinahomebrew-cask

Doing brew update fatal: unable to access '.git/config': Permission denied mac os catalina


[Screenshot] 1fatal: unable to access '.git/config': Permission denied warning: unable to access '.git/config': Permission denied fatal: unable to access '.git/config': Permission denied warning: unable to access '.git/config': Permission denied fatal: unable to access '.git/config': Permission denied

I'm doing command brew update I have the ZSH shell installed as well and I'm using Iterm also the same error on original terminal


Solution

  • After your fresh homebrew installation, you should always run sudo chown -R $(whoami) $(brew --prefix)/* to do the one-time permission setup.

    This is because homebrew is trying to setup the brew repo for brew in your local.