Course preparations

In order to have a smooth workshop start, you need to prepare a few technical things so you can jump right into using Git on the first day.

Install Git on your machine

You can find the download and installation guides for all major operating systems here or you can follow my guide below. If you have an old version of Git already installed, please make sure to update it prior to the workshop. You can checkout this article that explains how to find your current Git version and how to update to a newer one.

You can download Git from here.

Download and install the correct version for your machine (probably 64 bit). Use recommended or default settings during the installation. Most options can also be changed later if you want to.

With the Git installation for Windows, you also get a program called Git bash. Git bash is a terminal application for Windows that provides a Git command line experience.

Open the Git bash application (you can find it searching in the Windows search bar) and run the command git --version. If the Git installation was successful, you should see the version of Git that you are using printed to the console.

You can install Git from the terminal. Run

sudo apt-get update
sudo apt-get install git

Check the version of Git that you have installed with

git --version

Some versions of MacOS come with Git pre-installed. To check if you already have Git, open the terminal and run

git --version

If the terminal tells you which version of Git is installed, you can skip the next steps and check if you can update your current Git installation.

If you need to install Git, you can do this with homebrew. Just run

brew install git

Then check the version and verify the installation with

git --version

Sign up for GitHub

I will use GitHub as a remote repository service in the workshop and you can create an account here.

Use your institutional email address to get benefits

If you sign up for GitHub with an institutional email address, you will get a free upgrade to GitHub Pro. This gives you some additional benefits like private wikis and more. You can always add a second email address later or change it if you leave your institution.

If your institution provides a Gitlab server, you can later switch from GitHub to Gitlab. The workflows are all the same, you just need the account for this course.

Install GitHub Desktop

In the course, I’ll be using the GitHub Desktop application as a graphical user interface to work with Git.

There are detailed step by step guides on how to install and set up GitHub Desktop on the GitHub Website. Please follow this guide and do Part 1 (Installing GitHub Desktop) and Part 2 (Configuring your account).

Linux users

If you are running a Linux OS, you can install GitHub Desktop from the shiftkey repository as on the GitHub Desktop website, there is only a Windows and MacOS version available. When you finished with the installation, please head over to the GitHub Desktop documentation linked above and follow Part 2 (Configuring your account).