"Git: command not found" error while installing RVM on OS X
OS X does not ship with Git by default.
Three possibilities:
-
Easy GUI method: Download and run Git OS X installer. It's not always the latest version of Git, but should work fine for most cases.
-
OS X Lion only: Download Xcode 4 from the Mac App Store. It has Git integrated.
-
Command-line method: This works on all OS X versions. Install Homebrew and then run
brew install git
. You need Xcode for that. If you're on Snow Leopard, register as an Apple Developer (it's free) and then install Xcode 3.