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.
Launch the Terminal app found in /Applications/Utilities/
Type the following command in the Terminal:
% sudo xcode-select --install
- A dialog appears prompting to install the tools. Click install to start the installation. The tools will download and install.