Apples New OS — El Capitan — Breaks Git

While Apples comes out with their newest OS that is packed full of features, it can also pack some frustration for developers. I recently updated to El Capitan and thought everything was peachy. Unfortunately, when I ran a Git command recently, I ran into a road block.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Ugh! After a quick discussion with our amazing devops team at Molly Duggan, one of our developers found a solution that worked quickly ( um, after waiting for a download and install...). Follow these instructions to get yourself back up and Git'ing.

  1. In Terminal, run:$ xcode-select --install
  2. Wait for the download and install to complete. Close and reopen Terminal and type git. You should get a list of commands without the error.

If this article helped you, please give a thumbs up or a shout below.