First time running brew since 10.9 upgrade.
From the output below, should I just remove Library/Formula/ant.rb and Library/Formula/apple-gcc42.rb? Also, unclear why git pull is failing. Thanks for any help
525 [projects]$ brew --config HOMEBREW_VERSION: 0.9.4 ORIGIN: https://github.com/mxcl/homebrew.git HEAD: 27c26faf7b958de6028ad55be8ccc5a57b094d3f HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: 8-core 64-bit ivybridge OS X: 10.9-x86_64 Xcode: 5.0.2 GCC-4.2: build 5666 LLVM-GCC: build 0 Clang: 5.0 build 500 X11: N/A System Ruby: 1.8.7-358 Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /Users/*****/.rvm/rubies/ruby-2.0.0-p195/bin/ruby 526 [projects]$ brew update error: The following untracked working tree files would be overwritten by merge: Library/Formula/ant.rb Library/Formula/apple-gcc42.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
The first step is to run brew update . It updates Homebrew code and the taps (a tap is a repository of programs managed by Homebrew). Homebrew Cask provides the sub-command brew cask update but it is just an alias of brew update . You can use any of them; brew update is preferred because it is shorter.
A detailed description of the proposed feature. Today by default, everytime you install a new package, brew will go ahead and automatically update all of my system packages to their latest versions.
This fixed it for me
cd `brew --prefix`/Homebrew git fetch origin git reset --hard origin/master
brew update worked fine after that
You might still find..
brew update not working after
git pull origin master
cd /usr/local git pull origin master brew install git
Now you might already have git on your System, but what this will do it that now.
Your broken brew update will automatically be updated before at first run..
Here is the link to the origin issue in HomeBrew. brew stuck
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