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
I had a similar issue where my brew package library got downloaded as a root user and then I was not able to run brew update as git would complain about not able to merge the file.
Solution was to do :-
sudo chown -R /usr/local/Library