Error when trying to brew update

You can fix this issue by running two commands:

cd "$(brew --repo)" # Navigate to Homebrew's git repository
git prune && git gc # Remove loose objects

To check :

cd - # Go back to the original location
brew update

Output:

Already up-to-date.

Error should be fixed and gone! 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)