Installing Git on Your Machine | Windows,OSX and Linux

Installing Git on your Machine | Windows,OSX and Linux

Installing

This Tutorial will show you how to install Git depending on the Operation System you are using.

Windows :

  • Method 1 :

    Downloading :

    To download git on Windows, follow this link : Git for Windows

    Downloading

    Installing :

    After downloading Git, you can now install it like any other Windows Executable Software, Just click on that .exe file and let the magic happen.

    Setup

    Checking :

    After the installation, you have to check if everything went perfectly and Git is successfully installed.

    to do that, open a Git CMD (Win + ‘Git cmd’)

    ow To

    and type :

    1
    git --version

    and you should have something like this :

    Git V

  • Method 2 (Recommanded) :

    With this method, you will just do the 3 steps in 1 step.
    You can do that by downloading an application called Cmder.
    This app is a Console Emulator for Windows that comes with Git on it’s Full Version.

    Cmder

    So, All you have to do is Downloading it, Extracting it to a folder, and just run the cmder.exe file.

    Extract Folder

    Checking :

    To check if Git is installed successfully, type

    1
    git --version

    and you should have something like this :

    GitV

Mac Os :

Downloading & Installing :

You can install Git on MacOs by :
MacOs Installation

  • Using Homebrew (Recommended), with this command :

    1
    brew install git

    Brew

  • Using the Git osx installer that you can download here : OSX-Installer

    OSx Installer

Checking :

To check if Git is installed successfully, Open a terminal and type

1
git --version

and you should have something like this :

MacOs

Linux :

Downloading and Installing :

To install Git on Linux, you will only need 1 command.
Of course this command will depend on your Linux Distribution.

  • Apt-Based (Like: Debian,Ubuntu …) :
    1
    apt install git
  • Pacman-Based (Like: Arch,Menjaro …) :
    1
    pacman -S git
  • Yum or DNF Based ( Redhat, CentOs…) :
    1
    dnf install git / yum install git
    Install

Checking :

To check if Git is installed successfully, Open a terminal and type

1
git --version

and you should have something like this :

Installa

© 2021 - Sofiane Hamlaooui - Making the world a better place 🌎