If you’re gonna develop on a mac you’ll want to get started by downloading and installing Apple’s developer app Xcode. This will allow you to install nifty command line tools like ruby and git among others. So go ahead and download Xcode via developer.apple.com.
Once you’ve installed Xcode, you can install the line tools by opening Terminal and entering:
You’ll need to launch Xcode from the Finder or Terminal and agree to Apple’s terms of service to complete the process and finalize the installation.
That’s all there is to it.