From the course: Git for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installing Git on macOS X

Installing Git on macOS X - Git Tutorial

From the course: Git for System Administration

Start my 1-month free trial

Installing Git on macOS X

- [Instructor] Depending on your version of macOS, there may be different ways to install Git. However, if your version is new enough, the easiest way to install it is to open a terminal and try to run Git. In my case, I'm going to type in git --version and hit Enter. This will trigger the operating system to try to run it. When it does, it will go out and find Git for me and attempt to install it. When the dialog box pops up, click on Install. You will then need to agree to the Command Line Tools license agreement. Click on the Agree button. My laptop is not connected to a power source, so I got a warning. If you get this, just click on Continue on Battery Power and then wait for the installation to begin. Once it's done, click on Done. If you have a different version of macOS, you may want to go to the App Store and install Xcode from there. Xcode includes Git. Now Git is installed.

Contents