Unexpected Git version: ''! You must install Git before installing Homebrew
I tried to install git with binary source and tried to install homebrew after that but got this error
Also happening in M2 Mac
open /usr/local/bin//bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Okay! I've faced a similar issue and looks like we got this issue specifically in the m2 chip. So, what you can do is uninstall the git in your system and then try to install Homebrew again. I'm not sure what's the root cause but it did work for me.
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