
:quality(90)/article/2011/03/09/150123-xcode_4_screenshot_500.jpg)
We can see what our PATH includes by typing "echo $PATH" and pressing Enter.
#UPDATE XCODE UPDATE#
So, we just need to update our PATH variable and make sure that the path to the version we just installed comes before the path to the version installed by the command line developer tools. This is simply because the path "/usr/local/git/bin" comes after the path used by the apple version of Git in our PATH variable. However, when I try to run "git -version" it still says I'm using "git version 1.9.3 (Apple Git-50)". We can verify that face by typing "ls /usr/local" in the command line, and in that list, we see "git". Giving the official version priority over the one from AppleĪt this point, we have installed Git on our system.
#UPDATE XCODE MAC OSX#
Finally, you need to logout of your Mac OSX user account and log back in.(This loads the path to the script in the terminal.) Switch back to Finder, and drag the "setup git PATH for non-terminal programs.sh" file into your terminal window.There's no harm in running it, and you may find it useful in the future, so I'm going to go ahead and run the script. The final step is optional, and allows non-terminal applications to see Git. If you have any terminal windows, GNU Screens or TMUX sessions open, you'll need to restart those, or run "source /etc/profile" in each of them. The next step in the README.txt file is to restart bash sessions.Once the installation is complete, click "Close".You may be asked for your administrator password.Click "Continue" to begin the installation process.* Right-click (or hold the control key and click) on the ".pkg" file and select "Open" If presented a pop up saying that it cannot be installed because it is from an unidentified developer, you can override this security feature for this application only.

I'll walk you through these steps now, but it's a good idea for you to open this up and read through it yourself in case there's an update in the future.

Download the latest version of Git for Mac.īefore we begin the installation process, I'll open up the README.txt file that comes with the disk image.If you do see git in that list, stop watching this video, and skip to the video Updating Git if You Have the Version From Apple as well as an Official Install. If you don't see git in that lists, you most likely don't have it installed and can continue watching this video. Run "ls /usr/local" and look through that list to find git. Checking for an existing Git installation
#UPDATE XCODE INSTALL#
Let's install the latest official release and give it precedence over the one that came with Xcode or the command line developer tools.īefore we do that, let's make sure that we don't already have a version installed that just isn't getting priority over the version from Apple. The version in this example is 1.9.3, while 2.2.1 is the current latest release of Git. If, when you run "git -version", you see a message like "git version 1.9.3 (Apple Git-50)" you have a version of Git from Apple.
