How to Install Git: Git and GitHub Tutorial – Part 2


Installing Git on any operating system, be it Windows or Linux or Mac OSX, is pretty simple and straight forward. However there are few steps that you need to know before you get started.

If you haven’t read the previous article of the Git & GitHub Tutorial Series, please visit here.

Installing Git on Windows

Git download link :

Installing Git on Windows is pretty straight forward. You just need run the installer downloaded from the above link and go through the installation wizard. You should be up and running with Git in few minutes. Still if you find difficulty, please watch the video at end of the post and you should have no issues.

Installing Git on Linux

In order to install git on Linux, you can utilize the basic package-management tool that comes along with your Linux distribution.

If you’re on a Debian-based distribution like Ubuntu, try apt-get:

sudo apt-get install git-all

If you’re on Fedora for example, you can use yum:

sudo yum install git-all

Uninstalling Git in Linux

To completely uninstall Git on Ubuntu, do the following

  • delete the .gitconfig directory in user’s home directory
  • execute: sudo apt-get purge git
  • execute: sudo apt-get autoremove

Installing Git on Mac

There are a few ways that you can install Git on Mac.

  • One method is you can try to run git from the Terminal the very first time. If you don’t have it installed already, it will prompt you to install it.This does not work for me.
  • The other method is installing Git via a binary installer. An OS X Git installer is maintained and available for download at the official website.

Now go to the website and download the same. Then install Git from the downloaded .dmz file

Uninstalling Git in Mac

  • Run command “which git” (this command might return a value such as /usr/local/bin or /usr/bin)
  • Delete the directory returned by Git

What’s next?

Hope you enjoyed this article. Please read the next article in the Git & GitHub Tutorial series.

Watch the related video for this article

Enroll in this FREE Course

Bibhash Roy

Bibhash Roy

Bibhash is a hardened Software Developer and Professional turned entrepreneur with more than two decades of rich industrial experience in Sotware Engineering & Architecting. However, he is passionate about teaching whatever he has learned in his career spanning an array of prestigious stints at large multinational Software Giants.

About Us

GoKoders is the ultimate resource to learn Programming, Spring Framework & Spring Boot, Devops and Machine Learning that can help you to build mission critical Applications.

Subscribe to our Newsletter

Recent Posts


Follow Us

Weekly Tutorial

Sign up for our Newsletter

Want to build a rock solid foundation in Git & GitHub?
Enroll in this FREE Course

Git & GitHub For Complete Beginners

Want to build a rock solid foundation in Git & GitHub?

Enroll in this FREE Course

Git & GitHub For Complete Beginners