The Command Line Tools for Xcode is a package of tools that are available for use in the Terminal app. The tools include SDKs, compilers, and source control including git.

To Install

  1. Launch the Terminal app found in /Applications/Utilities/

  2. Type the following command in the Terminal:

% sudo xcode-select --install
  1. A dialog appears prompting to install the tools. Click install to start the installation. The tools will download and install.

xcode-select dialog

Reference

Downloads Page