In this case, continue to the video "Updating Git From an Older Version to the Latest Release".
GET GIT FOR MAC UPDATE
If your terminal responds with a message like this: "git version 2.0.1", you have an official version installed, but may need to update it to utilize the latest release. If you have an official version of Git already installed gitconfig, unless you particularly want to.
GET GIT FOR MAC INSTALL
However, you can simply open a terminal and execute git config, which will write the appropriate changes to this file. Option 1 (highly recommended): Install the Xcode command line tools (not all of Xcode), which includes Git. If you do see git in that list, continue to the video "Updating Git if You Have the Version From Apple as well as an Official Install". The global Git configuration file is stored at HOME/.gitconfig on all platforms. If you don't see git in that list, you most likely have not installed an official package and should continue to the video "Updating Git if You Have Only the Version That Comes with Xcode or the Command Line Developer Tools". Open the newly downloaded file an follow the prompts. Navigate to the latest macOS Git Installer and download the latest version. The easiest way to install Git on a Mac is via the stand-alone installer, which you can download from here. To do that, run "ls /usr/local" and look through that list to find git. Navigate to the latest Git for Windows installer and download the latest version. Before you do that, you'll want to check to see if there is already an official version installed, that just isn't getting priority ahead of the version from Apple.
If you get a message like "git version 1.9.3 (Apple Git-50)", you have Git installed from Apple (through Xcode or the command line developer tools), and can most likely benefit from installing the latest build directly from the official Git website. If you do see git in that list, continue to the video "Updating Git From an Older Version to the Latest Release". If the Git version number is not displayed, and you instead encounter a window like the one below, install the command line developer tools and follow the. If you don't see git in that list, you most likely don't have it installed and can continue to the video "Installing Git if You Do Not Have Xcode or the Command Line Developer Tools Installed".
To double check, run "ls /usr/local" and look through that list to find git. If you're prompted to install Xcode, or the command line developer tools, you either do not have git installed, or don't have it in your $PATH variable.
If you're prompted to install Xcode or the Command Line Developer Tools To do so, simply open a terminal window and type "git -version" and press Enter.īased on the response you get, one of the following videos will be applicable to your installation. Before you install Git, it's a good idea to check to see if you already have it installed.