Git doesn't work after upgrading Mac OS X El Capitan.
After installing El Capitan, I have this error when I'm doing a git command:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
The easiest way to update Git on Mac is to use the official installer. Download the installation file from the Git website. Run the installation and follow the install wizard to update Git to the latest version. Note: Using the install wizard to update Git overwrites the current installation.
The latest version is 2.33.0, which was released about 1 year ago, on 2021-08-30.
Thanks Nafsaka for the highlight.
Here is the solution: Reinstalling Xcode Command Line Tools via Terminal
xcode-select --install
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