Git broken after Upgrade to Mojave (10.14.5)

Second issue that I have found after upgrade my mac to Mojave is that Git stops working. When run git in terminal, it throws the error:

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

This means the command line tools of Xcode is not working properly. It needs either reset or update. For me, the fix is to update it:

 xcode-select --install


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s