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!

Click the icons to share

Posted by Sekander

Love to scroll social media and watch food vlogs. Trying to get my bachelors degree in business administration and working as a business development consultant for software companies at home and abroad.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.