Saturday, December 6, 2025

How to install Git ?

Steps to install GIT on your local system(Windows, Linux, Mac)

Before installing Git to your machine, it's a good idea to check if it's already installed onto your machine by simply typing the below command.

  • Open a command prompt (cmd on Windows) or terminal(Linux / Mac)

  • Type a command 


        $ sudo git --version


In case nothing shows (i.e. no output on the terminal) then you have to install the Git else you can update the Git incase version is of OLD.

Installation on Linux:

For RPM based distribution, such as CentOS or RHEL, use below command:

                $ sudo dnf install git-all

For Debian based distribution, such as Ubuntu, use below command:

        $ sudo apt install git-all


Installation on Mac:

MacOS comes with Git installed by default and you can check it via the terminal with command


         $ git version


Nevertheless, if you don't have Git installed for whatever reason, you can use Homebrew to install the latest version of Git.


Install homebrew if you don't already have it, then:

        $ sudo brew install git


Installation on Windows:

You can visit the official site to download the Git build/binary. Browse https://git-scm.com/download/win and the download based on your OS (x64 or Arm64) .

  1. Once the installation has started by double clicking on the Git binary, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.

  2. Make sure to check the "Add to the system path" or similar option so that you can use Git seamlessly from anywhere in your system.

  3. To verify Git is installed, open the windows command prompt and type $ git version


Reference screenshot :

git download page






How to install Git ?

Steps to install GIT on your local system(Windows, Linux, Mac) Before installing Git to your machine, it's a good idea to check if it...