Git wise!

An introduction to version control with Git

Introduction

1 This webpage accompanies the introduction to version control with Git by the Radboud University’s Digital Competence Centre. It is meant in lieu of the traditional slides and also has useful links, e.g. to a Git cheatsheet. If you are a member of Radboud University’s staff, you can find the running Git course and sign up for it on gROW. There is also a list of all our courses on the Radboud University’s DCC page.

You may use this webpage for your own course, if you wish. You are also free to fork it and adapt it to your own needs. If you have any remarks or suggestions for improvement, you can submit it as an issue under the Issue section of the repo on Codeberg.

The Git workshop is taught in two sessions:

  • Session 1 This session will cover the basics needed to work with Git on a solo project. It explains what Git is and covers topics, such as installation and configuration, creating repositories, tracking changes, etc.
  • Session 2 Learn how to use branches, work with remote repositories, and adopt workflows for team collaboration. Practical scenarios will include code review basics and best practices for keeping a shared codebase healthy.

Prerequisites

For both sessions, students will need to bring their own laptop. In addition:

  • Session 1 Basic CLI skills are required. If you don’t have those yet, or you want to brush up on them, you join our workshop on Performing research in a UNIX-like environment;
  • Session 2 Knowledge of Git as achieved by the end of Session 1.

Slides session 1: the basics

You can also open the slides in a new tab here.

Slides session 2: branching and teamwork

You can also open the slides in a new tab here.

Git commands cheatsheet

A cheatsheet with all the commands that are used in the above slides.

Footnotes

  1. Image incorporates a ‘jazzy’ rendition of the Logo for Git, Jason Long, available for use under CC BY 3.0↩︎