How to Install Git on Linux, Mac and windows

By: Sunil Kumar |  In: Git  |  Last Updated: 2018/07/26

“Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.”

Git allows you to keep track of your software at the source level. Before start using git, you have to install it to your system.

In this guide, we will demonstrate how to install git on Linux, Mac and Window-based systems.

Installing on Linux System

It is easiest to install Git on a Linux based system.

First update your system using update command(If already up-to-date, you can skip this step)

$ sudo apt-get update

If you are using a Debian based system(like Ubuntu) you can use apt-get to install git

$ sudo apt-get install git-all

And if you are using a Fedora system you can use yum

$ sudo yum install git-all

Installing on Mac

There are several ways to install Git on a Mac. OS X comes with a fairly old version of Git pre-installed, so we want to make sure that your terminal is using a more updated version. Download the latest version of git to install it on your system.

When it’s done downloading, open the DMG package and run the package installer.

After successful installation, you can check version of git using-

Installing on Windows

You can Download git for windows from here. Just click on that link and download will start automatically.

After completion of download Click on the downloaded executable to start the install process and follow the instruction.

Comments


Leave a Comment

Your email address will not be published.

*


Sunil Kumar


I am the owner of acmeextension. I am a passionate writter and reader. I like writting technical stuff and simplifying complex stuff.
Know More

Join more than 10,000 others Web Developers


%d bloggers like this: