Installing Git

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

  1. Download the Git executable file from here https://git-scm.com/downloads

  2. Run the download, make sure you have administrator rights

  3. Install a GUI if you want to use one (Makes it easier to visualise what's going on)

  4. Choose a default text editor for Git files

  5. Allow Git to be added to the Windows PATH

  6. Accept the default line ending conversion for Unix and Windows compatibility

  7. 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:

Debian/Ubuntu

apt-get install git

Fedora

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).

Other options

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 jackjohnson@terriblesinging.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)

user.name=Jack Johnson

user.email=jackjohnson@terriblesinging.org

 

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

Tags

git
installing Git
Linux
Ubuntu
Windows
GUI

Add new comment

CAPTCHA
Answer the below question to help us fight spam

How many legs does an elephant have?