mbb
mbb

Reputation: 3110

What's managing the git I'm using on my mac?

I'm confused on what's managing the git I'm using given my environment. I'm using:

Xcode is not installed at this time but may have been in the past. I'm running 10.10.1 of OS X.

$ which git
/usr/local/bin/git
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
$ brew upgrade git
Error: git-2.1.3 already installed
$ git --version
git version 1.8.4
$ pip show git
$

To clarify my goal: I'd accept removing the 1.8.4 version of git in favor of the later version managed through brew if and only if it doesn't break the native GitHub app.

Upvotes: 0

Views: 261

Answers (1)

Tim Smith
Tim Smith

Reputation: 6339

brew link git --overwrite will replace the version in /usr/local with Homebrew's. Homebrew is shy about overwriting files; if /usr/local/bin/git already existed before you ran brew install git, Homebrew would have built and installed git to the Cellar but wouldn't have symlinked the Homebrew git into /usr/local.

The Xcode/CLT git is in /usr/bin.

Upvotes: 2

Related Questions