The download size of Xcode is more than 2.5 gb and it’ll be more after the installation. Its better to download just the command line tools.
- Download the latest version of command line from the Apple Developer Downloads page (Download the latest version available in the list. Look by release date. Make sure its not a beta version)
- Open the .dmg file and install the tools (This will install gcc, ruby and other necessary tools)
- Go to Homebrew website – to find the install instruction. It is just a single ruby command.
- Installing Homebrew will give you all sorts of possibilities where
Now for installing Git and other tools, use the brew command.
Running brew on a few packages (like macvim) will still require a full Xcode installation to install. But you can visit the official site of those tools to download them. 😉