I had a lot of trouble performing
brew update (hanging for 20m and never completing), and tried numerous solutions I found throughout the git repo and wider WWW, to no avail. Where I was hanging:
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core... Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask... ... wait a long time ... FAIL
I noticed when running with --verbose --debug that it was trying to use a git binary from this location:
When I manually changed to the git repo directory and used
/usr/bin/git pull the repo updated instantly, and the issue was solved… Just not sure if anyone else has seen this, and I was sort of wondering why homebrew was using that odd git from within Xcode.app?