I can not git clone on mac
Sep 5, 2018 · 1 min read

environment
- mac high sierra 10.13.6
I tried to use git and I got such an error.
$ git status
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrunBut you already have xcode-select on terminal?
$ xcode-select — install
xcode-select: error: command line tools are already installed, use “Software Update” to install updatesI had to fix the pass.
Execute `xcode-select -p`. It should be as follows. I fix it because I have a wrong pass.
$ xcode-select -p
/Applications/Xcode.app/Contents/DeveloperExecute the following command
sudo xcode-select -switchThe path should be correct. You should be able to use git.
$ xcode-select -p
/Library/Developer/CommandLineTools