I have just updated my OS X to El Capitan.
In previous version I have git installed with Xcode (as it was recommended settings).
After updating I could not use git.
git command shows.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
git --version also shows same error. I have installed XQuartz but the problem didn't resolve.
I will mostly use git from terminal or from Jetbrains IDE