How to Install Git?

Git Installation for Windows

The safest method to install Git for Windows is to download it from the official website. You can go to the official Git website by clicking here and then follow the steps below to download and install Git on your system.

Git Download Page

When you first enter the download page, you will see a screen like above. Here, you will notice that there are many operating systems other than Windows, but for operating systems other than Windows, it is much healthier to use the Terminal rather than this page. Select the Windows option here and continue.

Git Download Process

Our file will start downloading.

Git Download Completed

Once the download is complete, run it as administrator for a smooth installation and click yes. The setup wizard will then appear on your screen.


Setup Wizard1

First, a user agreement will appear. After reading it, click Next, or if you are using a Turkish system, click İleri.

Setup Wizard2

The next step asks you to choose the location to install. If you want to change the installation location, click next and continue the installation.

Setup Wizard3

The next step asks you to select the components to be installed with Git. Select the components you want and continue by pressing the next button.

Setup Wizard4

At the next step, it asks whether you want Git to appear in the start menu after the installation is complete. You can check or uncheck it according to your preference. Let's click next and proceed with the installation.
Note: If you check Don't create a Start Menu Folder, Git icons will not appear in the start menu.

Setup Wizard5

Here it asks if you want to use Git along with Visual Studio Code. Let’s click next and proceed.

Setup Wizard6

It asks if you want to install a terminal interface for Git or use it with Bash/CMD.

Setup Wizard7

It asks whether you want to use some libraries for Git.

Setup Wizard8

Let’s click next.

Setup Wizard9

Let’s click next.

Setup Wizard10

Let’s click next.

Setup Wizard11

After these steps, a setup panel will appear, and the installation status will be shown to you with a progress bar. Wait for the bar to fill up.

Setup Wizard12

When the progress is completed, a screen like this will appear. When you click next, the setup wizard will close.

Git on Start Page

Now Git has been installed on our system and we can use it.

Git Bash

You can check your Git version on Git Bash with the command above.

git version


Git Installation for Linux

Regardless of the distro you use, to install the latest version of Git, first update your system and then install it via terminal/console using the following commands, or download the installer from the website as in Windows.

Debian/Ubuntu
 sudo apt-get install git
Arch
sudo pacman -S git

Git Installation for MacOS

Git is available on MacOS from the beginning; if it is not present on your system, it will be automatically installed when you install Xcode.

To check if it is already installed on your system, you can use the "git Version" code mentioned at the end of the Windows section above, and if it is not found, you can download and install it from the link below or from the original page at the top of the article.

You can click here to go to the page.