I am using a macbook and have ruby installed on my machine. I wanted to install a ruby gem but wanted 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 going in to the library/formula folder but it doesn't exist on my machine. I am not sure what to do from here.
cd /usr/local && git reset --hard FETCH_HEAD
or if it fails
cd /usr/local && sudo git reset --hard FETCH_HEAD
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With