After upgrading to macOS Mojave, I tried to run GIT from Terminal but it kept giving me the following error:
xcrun: error: invalid active developer path (
This happened to me after updated XCode to 12.3
Using the following command as root solved the issue:
sudo xcode-select --reset