Thursday, October 25, 2018

macOS Mojave doesn't recognize git



Who doesn't want dark mode on mac!

However, after updating the macOs to Mojave, if you try to access git on your command prompt, it throws below error -

$ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun


All you need to do is reinstall the xcode command line tool using following command -

$xcode-select --install

It should run fine after that.

No comments:

Post a Comment