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 (
when I use git in the terminal:
then I run it:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer