0% found this document useful (0 votes)
10 views

Git - Installing Git

This document provides instructions for installing Git on various operating systems including Linux, Mac, and Windows. It outlines specific commands for installation on RHEL and Debian-based Linux distributions, as well as methods for Mac using Homebrew or an installer. Additionally, it explains how to check the installed Git version using the command 'git --version'.

Uploaded by

orcun.odabasi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Git - Installing Git

This document provides instructions for installing Git on various operating systems including Linux, Mac, and Windows. It outlines specific commands for installation on RHEL and Debian-based Linux distributions, as well as methods for Mac using Homebrew or an installer. Additionally, it explains how to check the installed Git version using the command 'git --version'.

Uploaded by

orcun.odabasi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Installing Git

In order for you to be able to use Git on your local machine, you would
need to install it.

Depending on the operating system that you are using, you can follow
the steps here.

Install Git on Linux

With most Linux distributions, the Git command-line tool comes


installed out of the box.

If this is not the case for you, you can install Git with the following
command:

On RHEL Linux:

sudo dnf install git-all

On Debian based distributions including Ubuntu:

sudo apt install git-all

Install Git on Mac

If you are using Mac, Git should be available out of the box as well.
However, if this is not the case, there are 2 main ways of installing Git
on your Mac:

18
Using Homebrew: in case that you are using Homebrew, you can
open your terminal and run the following:

brew install git

Git installer: Alternatively, you could use the following installer:

git-osx-installer

I would personally stick to Homebrew.

Install Git on Windows

If you have a Windows PC, you can follow the steps on how to install Git
on Windows here:

Install Git on Windows

During the installation, make sure to choose the Git Bash option, as this
would provide you with a Git Bash terminal which you will use while
following along.

Check Git version

Once you have installed Git, in order to check the version of Git that
you have installed on your machine, you could use the following
command:

git --version

Example output:

19
git version 2.25.1

In my case, I have Git 2.25.1 installed on my laptop.

20

You might also like