in Swift

Getting Git running on Yosemite

Recently, I tried running git from the command line and I got an error from XCode as follows

Screen Shot 2014-06-24 at 11.31.40 AMWhich brought up this dialog, and thinking that clicking on install will do something, well….

Screen Shot 2014-06-24 at 11.25.43 AM

Finding the software…

Screen Shot 2014-06-24 at 11.25.53 AM

And it FAIL…..

Screen Shot 2014-06-24 at 11.26.41 AM

Then it dawned on me, duh, I hadn’t installed Git. (Having to switch between Mavericks and Yosemite…) So I went ahead and downloaded Git from and once the packaged is downloaded, I double clicked on it to install Git, and sure enough, you can’t, because it is from an unidentified developer.

Screen Shot 2014-06-24 at 11.29.54 AM

System Preference’s Security & Privacy panel to the rescue. Click on “Open Anyway”

Screen Shot 2014-06-24 at 11.30.10 AM

But that’s not all folks. If you run Git on the command line, it will not launch, you will be back at the xcode-select error. (See the first image).


So, dust off your vi and start a vi session


vi ~/.profile

Then add

export $PATH

Once you do this and have successfully saved your profile settings, remember to start a new terminal session so that the changes take effect. To verify that it works after a new Terminal session has started type Git on the command line and you should see the following

Screen Shot 2014-06-24 at 11.32.35 AM


And you are done. We have successfully installed Git on Yosemite. If you have comments, or I missed a step, let me know.



Write a Comment



  1. Just tried this and got it working without a new git install. If you’ve upgraded from mavericks you probably just need to add the path and reload your shell.