Reproducibility is an important aspect of scientific research. A version control system such as git can help considerably in this respect. It is also and excellent tool for collaboration. You can use version control on


  • the text of publications when there are multiple authors;

  • source code of applications that evolve over time;

  • scripts for workflows, data preprocessing or postprocessing.


A version control systems helps you keep track of

  • what changed,

  • when it was changed,

  • who made the change.


Learning outcomes

When you complete this training you will be able to

  • use the git version control system in a single-user setting;

  • use the git version control system in a multi-user setting;

  • work with branches to separate concerns;

  • examine the history of a project;

  • use git though a GUI as well as the command line;

  • create and manage repositories on Gitlab.



Total duration: 4 hours

Training materials

Slides are available in the GitHub repository, as well as material for hands-on.

Some best practices and advice are available online.


Video materials

Video recordings of this training are available on YouTube.


  1. Introduction & motivation (11.5 minutes)

  2. git repository hosting (6 minutes)

  3. SmartGit GUI client first push (6.5 minutes)

  4. Single user scenario (30 minutes)

  5. Single user scenario terminal demo (11 minutes)

  6. Multiple user scenario (24.5 minutes)

  7. Multiple user scenario demo (10 minutes)

  8. Some details (8 minutes)

  9. Contributing to repositories (13 minutes)

  10. Conclusions & references (3 minutes)


Target audience

This training is for you if you write texts or code, need to reproduce your experiments and collaborate on projects. Prerequisites For the part on using git from the command line, you will need familiarity with either the Linux bash shell, or Windows Command Prompt.


Geert Jan Bex (