If you are usingĀ OS X El Capitan, and trying to run any Git commands results in an error like:

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

Git and many other command line tools need to be installed as part of the optional Command Line Tools subsection of the Xcode IDE. The Command Line Tool package gives users many commonly used command-line tools, utilities, and compilers, including make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, etc.

Fortunately it’s very easy to install this package, and you don’t have to install Xcode first.

Just open a terminal window and type;

xcode-select --install

References

  • http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
  • http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/

 

Git clone fails with invalid active developer path error

Git clone fails with invalid active developer path error