change xcrun developer path for Android Studio/IntelliJ
Instead of installing xcode you can install git from here and change the path in android studio to /usr/local/git/bin/git
as shown in the image below.
This way you save time and memory.
I ran into the same problem, however with svn
. I found that by installing El Capitan, Xcode was "uninstalled". I reinstalled Xcode from the App Store and then reinstalled Xcode Command Line Tools via Terminal with
xcode-select --install
After installation, my /Library/Developer/CommandLineTools/usr/bin
directory reappeared and svn
started working again.