Search code examples
githubosx-mountain-lionbrunch

Git clone error after OS X Mountain Lion update


I just updated my MBP to OSX 10.8 and am trying to start a new project with brunch.io which by default uses coffeescript and I prefer javascript so I need to clone the simple js skeleton. So something like this:

brunch new <someprojectname> --skeleton https://github.com/brunch/simple-js-skeleton.git

Which is what I have used previously and it worked fine. But today I am getting the following error:

error: Git clone error: /bin/sh: git: command not found

I really don't know how to fix this...


Solution

  • You can download Apple's official collection of developer command line utilities (which includes git) by either:

    • Opening Xcode, going to Preferences > Downloads and clicking the install button next to 'Command Line Utilities'
    • Going to developer.apple.com/downloads, and downloading "Xcode 4.4 Command Line Tools for OSX 10.8" from the Xcode 4.4 category