Homebrew git checkout error

Icon from the Gnome desktop project
Homebrew giving you grief when attemting to perform a brew update?

Aborting
Error: Failure while executing: git checkout -q master

You're not alone. Fortunately jacknagel's solution fixes the problem.

cd `brew –prefix`
git remote add origin
https://github.com/mxcl/homebrew.git
git fetch origin
git reset --hard origin/master

Allegedly there have been changes with git after 1.7.4.4. Presumably the Homebrew folks will update their default installer, but this works in the meantime.


Imprint

This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at weblog2017@rubenschade.com. Thanks :).