Installing Git is different for different operating systems, but pretty simple for them all, below are instructions for Linux and Windows, if you are using a different OS then have a look here https://git-scm.com/book/en/v2/Getting-Started-Installing-Git.
Installing Git on Windows
Download the Git executable file from here https://git-scm.com/downloads
Run the download, make sure you have administrator rights
Install a GUI if you want to use one (Makes it easier to visualise what's going on)
Choose a default text editor for Git files
Allow Git to be added to the Windows PATH
Accept the default line ending conversion for Unix and Windows compatibility
Chose the extra option to enable system caching
Installing Git on Linux
Install Git using the command line, first bring up Terminal, then select the current command from the options below:
apt-get install git
yum install git (up to Fedora 21)
dnf install git (Fedora 22 and later)
Installing a Graphical user interface
Git is very simple to use from the command line, but if you prefer to see what’s going on then a Graphical User Interface is a light in the darkness.
Loads of different interfaces are available, GitKraken has a free basic version which is easy to install and will connect to online repositories like GitHub with no trouble.
Download it here https://www.gitkraken.com/download .
Installation is a few clicks on Windows or Linux (it’s in the app store).
If GitKraken doesnt do it for you then lose yourself in this huge list of GUIs that could fill an entire day of procrastination https://git-scm.com/downloads/guis/ .
Configuring your details
The last thing you have to do is give Git your username and email address, this is so that you can be identified in the system.
Open up Terminal or get yourself to a command line
Enter the following commands (change the pretend username and email address for your actual ones)
git config --global user.name "Jack Johnson"
git config --global user.email firstname.lastname@example.org
Now run the following command to see your new details have been saved
git config –list
You should now see this (again, your details not these ones)
It’s installed, now what?
Next we are going to use Git to create a repository, learn how to branch and update a project and collaborate with other people.
What did I just read?
Git can be installed on Windows, Linux and Mac
Git has a Graphical User Interface which you have to install separately
You need to set up your username and email address to identify you in Git