I need Git. Is it better to install command line tools (183mb) or `brew install git`

command linegithomebrew

I think that it is better to install Git from Homebrew:

  1. Less size

  2. Install only what I need – I do not need LLVM compiler, for example.

  3. Faster install

  4. All packages in one place

  5. No need to re-install command line tools after every macOS upgrade.

Best Answer

You need the command line tools to install Homebrew anyways, see: https://docs.brew.sh/Installation

Requirements

  • An Intel CPU
  • macOS 10.12 or higher
  • Command Line Tools (CLT) for Xcode: xcode-select --install, developer.apple.com/downloads or Xcode

  • A Bourne-compatible shell for installation (e.g. bash or zsh)