Git not working in macOS Catalina?

·

I just updated to macOS Catalina yesterday. When started my terminal, it wasn’t able to recognize it as a Git repository. I work with WordPress plugins. So I thought I might have updated directly from WordPress.org so the Git folder got replaced and it is not a Git repo anymore!

So I tried to clone again from Bitbucket but it showed an error message-

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

So, I googled and found that I need to update Xcode from StackOverflow. This is the code I ran and everything was back to normal again.

xcode-select --install

You can also run xcode-select --reset. That works too!

Comments

Leave a Reply