Git Installation | Bondar Academy
Course: Git and GitHub Fundamentals
Module: Introduction
Instructor: Artem Bondar
Lesson Summary
In this lesson, we will check if Git is installed on your computer and guide you through the installation process if it is not. Checking for Git Installation To verify if Git is installed: For Mac : Open Terminal . For Windows : Open Command Prompt . Type the command git -v and hit Enter . If you see a version number (e.g., git version 2.43.0 ), Git is already installed. You can proceed to the next lesson. If you receive a message indicating that Git is not found, follow the installation steps below. Installing Git on Windows Open your browser and navigate to git-scm.com . Click on Windows Builds on the right side. Select the appropriate installer based on your CPU: Windows x64 installer for Intel CPUs. IRM 64 for Qualcomm processors. Run the installer and follow the default settings to complete the installation. Close and reopen Terminal or Command Prompt , then run git -v to confirm installation. Installing Git on Mac Download Git from git-scm.com . Install Homebrew if you don't have it. Use the command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Follow the instructions to add Homebrew to your path. Install Git using Homebrew with the command: brew install git Close and reopen Terminal , then run git -v to verify installation. Once you see confirmation that Git is installed, you are ready to move on to the next lesson!
Video Transcript
All right, in this lesson, we will check if you already have Git on your computer, or if you don't have, we will install it, all right? Let's jump into it. So first of all, if you are on Mac, open Terminal, or if you're on Windows, open Command Prompt, and check if you already have Git. So type command, git dash v, and hit Enter. And if you see something like this, git version in my example 243.0, it means Git already installed. You can stop right here and move straight to the next lesson. If you don't have it, if you have any other message that Git not found or something like this, stay tuned, I will show you how to install Git. So how to do that? Open your browser and navigate this website, git-scm.com. So this is the place where you download Git. And if you are on Windows here on the right side, it would be the most simplest way. So click on the Windows Builds, and you have two options, Windows x64 installer or IRM 64. So it depends on your CPU, what processor do you have? So if you have Intel CPU, then download x64. If you have a different processor like Qualcomm with IRM architecture, then download this installer. So run this installer as usual, click everything by default, and just complete the installation. After you've done this, close your Terminal session, open a new terminal, and run command git-v one more time to see if Git is installed. Now, if you are on Mac, that's a process a little bit more tricky. So download for Mac, I click over here. And Mac does not have the installer like Windows have. Instead, you will need to install a Homebrew. So Homebrew is the package manager, very convenient package manager, by the way, to install all kinds of packages just through the command line. But you need to install the Homebrew, first of all, if you don't have it. So here's the URL to the Homebrew, I open this. So to install the Homebrew, you need to copy this URL, so just click on this little icon, and paste this URL back inside of your terminal like this, and run this installation. I'm not gonna do this because I already have a Homebrew on my computer, it's gonna take some time. But you just run this and wait until it will be completed. Then watch the installation at the very end of the installation of the Homebrew. It will tell you, hey, run these two commands to add Homebrew to the path. So just Ctrl C, Ctrl V, those commands in the terminal, and complete the successful installation of the Homebrew. That way, Homebrew will be installed on your computer. And after you've done this, you just copy this command, brew install git, paste into your terminal, run it. And that way, git will be installed on your computer. And the same way, to verify, you go back to the terminal, close the terminal, open new terminal session, and run git-v to validate that git was installed successfully. After you see the confirmation that git is installed, you're all set, and you can move forward to the next lesson. All right, that's it, guys, and I'll see you in the next lesson.