Introduction
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 : http://git-scm.com/download/win
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.