git invalid developer path
Hi,
After the upgrade to El Capitan I am getting the following error in Git
MacBook-Pro:xekmypic dlsa$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
MacBook-Pro:xekmypic dlsa$ git push
Password:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
MacBook-Pro:xekmypic dlsa$
As can be seen from the output of the first command the active developer path reported by xcode-select is not the same as reported by the git binary.
I am running the git binary from the git download site and not the git that already comes with OS X. I ran the following command to override it :
MacBook-Pro:xekmypic dlsa$ alias git=/usr/local/git/bin/git
MacBook-Pro:xekmypic dlsa$ git --version
git version 2.6.4
MacBook-Pro:xekmypic dlsa$
I already have Xcode 7.2 and the command line developer tools. (it wont let me reinstalling it, the command xcode-select --install will tell me that the tools are already installed)
How can I fix this issue ?
Thanks