Trying to update Homebrew with brew update I got the following error
brew update
error: The following untracked working tree files would be overwrittenby me
sudo chown -R USER /usr/local/bin
note - for USER use command whom i.e. your username
sudo brew doctor