5

When I run git --version I get git version 1.7.12.4 (Apple Git-37), and it seems to be located at /usr/bin/git. I don't remember installing Git, but I did install Command Line Tools for Xcode in order to install Homebrew. Not a full Xcode install — just the command line tools.

I'm trying to figure out how best to update to a newer Git version, and determining how it was originally installed would be helpful. I think it came with the command line tools installation, but I'm not 100%.

2
  • FYI, if you're looking to install a newer git, I would recommend use Homebrew with brew upgrade and/or brew install git
    – Josh Hunt
    Sep 18, 2013 at 0:42
  • @DavidPearce The more I look into this, the more I think that's the best answer too.
    – ivan
    Sep 18, 2013 at 0:44

1 Answer 1

4

Yes, the Command Line Tools package does include /usr/bin/git. You can see what files are included in an installer by pressing command-I:

As of 10.8, OS X does not come with git preinstalled.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .