The other is to install Xcode, which includes the Command Line Developer Tools. You have options here one is to click Install and get the Command Line Developer Tools. Would you like to install the tools now?” If you don’t have Git installed, then an alert will appear displaying “The “git” command requires the command line developer tools. If you see git version followed by numbers, i.e., git 2.5.4 then you are good to go.
bash_profile of which will precede Apples git stub (will bypass the XCode installation notice and need to install XCode altogether).Īfter typing the above command, simple close and re-open the terminal, or to re-load your bash profile without closing and re-opening, simply run: source ~/.Open Terminal and enter git –version. You’ll now have added the new ‘git’ binary path into your. Not for long… Download and install the latest version from the Git website and then simply open up your terminal and run the following command: echo "PATH=/usr/local/git/bin:\$PATH" > ~/.bash_profile Today I re-installed one of my Mac’s with the latest version of OSX (my laptop has been using Mavericks for a while so I thought I’d better upgrade my family iMac too!)Īnyway, annoyingly, if you download Git for MacOSX from the official Git website ( ) and install it on your Mac, you’ll notice that unless you have XCode installed, OSX will keep pestering you to install XCode!