git on command line no longer works on El Capitan

Having just installed OS X 10.11 last night, I was surprised to see that my Bash terminal did the following:

$ git
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Previous version of XCode did not transfer to the new OS. I tried a fresh install of Git, but still had the same XCode failure in Bash.

Is there good reason for this?


For me, this was a solution:

xcode-select --install

After the installation, git started to work again.


Faced this after upgrading to El-Capitan

xcode-select --install 

didn't work for me even after 'Finding Software' and Downloading. I don't have Xcode.app installed (Didn't want to install it) so i fixed it by downloading Command Line Tools from https://developer.apple.com/downloads/ (requires Apple SignIn) and installed it manually.

After installation i was able to run git commands again