Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get over Homebrew Git conflicts?

I installed Homebrew. "brew --prefix" is /usr/local. I've now mistakenly done things to the master branch of my local Brew Git repo that endlessly conflict with "brew update". I'd like to throw away or ignore my local changes. Normally I'd just rm -rf repo and re-clone, but I don't think rm -rf /usr/local is wise.

How do make my local Brew Git repo happy?

like image 817
dfrankow Avatar asked Dec 09 '25 20:12

dfrankow


1 Answers

git reset --hard origin/master should make everything sync up with the main Homebrew Git repo. It'll throw away any local changes you made to files tracked in the repo.

like image 183
mipadi Avatar answered Dec 12 '25 10:12

mipadi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!