You are setting up your DEV environment. You setup Homebrew on your machine to so you can install node.js, GIT, and alike. Problem is that to install Homebrew, you needed to install Xcode. Xcode installs a version of GIT onto your mac automatically to use for Xcode development so when you input
which git the directory points to
git --version prints
git version 2.3.2 (Apple Git-55) when the latest is already GIT 2.5.0
Here is the catch-22 I ran into.
Do I need to modify and update the Xcode GIT? Do I install GIT through Homebrew and then modify that GIT settings so it doesn’t relate to the Xcode GIT? Or do I need to go to https://git-scm.com/ and install the latest GIT and modify that?
The last thing I want to do is install incorrectly and possibly ruin/corrupt my environment so far. It took me a while and a lot of research because there are so many postings about this problem and to correct this problem, but hardly any explaining what they did/installed to get this problem, but worst of all, what is the best to set up GIT especially if you have Homebrew with Xcode already installed.
Now let’s get the party started.
$ brew install git ------------------ ==> Summary /usr/local/Cellar/git/2.5.0: 1383 files, 32M
Now let’s check the GIT version.
$ git --version git version 2.5.0
$ which git /usr/local/bin/git
There was no worry! Old postings are wrong, and it looks like this is no longer an issue!