? Get Git Running Again on Mountain Lion

When I upgraded to Mountain Lion everything seemed fairly smooth sailing until I tried to clone a repository in git. As it turns out there are a couple steps you must take to get rid of the dreaded -bash: git: command not found when you enter git commands in terminal.
Step 1. Open up XCode (or if you don’t have it yet, download it from the Mac App Store here.

Step 2. Press ? , (The command key and comma) to open up XCode’s Preferences (pictured below). Under the downloads tab you’ll see Command Line Tools in the last row.

xcode command line tools

Step 3. Click the rounded Install button next to Command Line Tools and wait for the install to complete. (You’ll see a blue progress bar and then it will say Installed.)

Step 4. Type git into the command line and you’ll see your normal response again.

About the author: Entrepreneur with ten years of experience running a digital marketing agency out of New York City. I work with startups and brands such as Virgin Airlines, L2 Inc (Gartner), American Express, Fabletics, LOFT, and more. When I’m not helping companies increase their audience and revenues, I love to travel, sail, and read. I also moonlight as a bartender at a classic cocktail bar.

0 comments… add one

Leave a Reply

Your email address will not be published. Required fields are marked *