Homemade beer – brew update error

I am using a macbook and have ruby ​​installed on my machine. I want to install a ruby ​​gem, but want to update HomeBrew first. I ran’brew update’ in my home folder and got this error:

error: The following untracked working tree files would be overwritten by merge: 
Library/Formula/vcprompt.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master :refs/remotes/origin/master

I tried to enter the library/formula folder, but it does not exist on my machine. I don’t know what to do from here.

cd / usr / local&& git reset – hardware FETCH_HEAD

Or if it fails

cd / usr / local&& sudo git reset –hard FETCH_HEAD

I am using a macbook and on my machine Ruby is installed. I want to install a ruby ​​gem, but want to update HomeBrew first. I ran’brew update’ in my home folder and got this error:

error: The following untracked working tree files would be overwritten by merge: 
Library/Formula/vcprompt.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master :refs/remotes/origin/master

I tried to enter the library/formula folder, but it does not exist on my machine. I don’t know what to do from here.

cd /usr/local&& git reset-hardware FETCH_HEAD

or if it fails

cd / usr / local&& sudo git reset –hard FETCH_HEAD

Leave a Comment

Your email address will not be published.