Introduction to collaborative coding with GitHub

Building reproducible research projects.

Click here to see the materials in full screen

About these materials

Please cite these materials as: Waterfield, E., Ihle, M., & Von Grebmer Zu Wolfsthurn (2026). Introduction to collaborative coding with GitHub [Quarto slides]. LMU Open Science Center. https://lmu-osc.github.io/teaching-material-for-novices/open-research-principles/github

Welcome! This workshop is intended to introduce learners to the essential skills for collaborating on shared projects using GitHub and RStudio. It will guide learners step‑by‑step through the core parts of a collaborative GitHub workflow, including how to navigate GitHub’s interface, fork and clone repositories to work locally, and use Git commands to commit, push, and pull changes. Simultaneously, this workshop prepares learners to actively use reproducible research practices and how to design a simple collaborative workflow that keeps everyone’s work synchronized and traceable.

Who are these materials for?

  • Educators in higher education with or without familiarity with open research planning to teach open research to novices
  • Self-learners with no or limited familiarity with open research planning to develop and build up on their open research skills

Prerequisites

Prerequisite Description Where to find it
R and RStudio installed Latest versions of both R and RStudio Download RStudio
Basic R skills Introduction to R - Part I Access here
Advanced R skills Introduction to R - Part II Access here
Basic Git skills Introduction to version control with Git in RStudio Access here
GitHub account Your own GitHub account Join GitHub
Practice GitHub repo Fork the LMU OSC Collaborative-RStudio-GitHub repository to set up a practice repository for the exercises in this lesson

Learning objectives

At the end of this session, you or your learners will be able to …

  • Navigate GitHub to collaborate on shared projects.
  • Fork and clone repositories to work locally without altering the main branch.
  • Commit, push, and pull changes to keep your project tracked and synchronized.
  • Design a collaborative workflow that enhances the openness and reproducibility of your own projects.

Download materials

Export slides

You can export these slides as MS PowerPoint (.pptx - in progress) or pdf by clicking below. Note that basic formatting will be applied to the PowerPoint file.

Download slides as PDF

Activity sheet

Download the activity sheet for this topic here:

Download slides as PDF

Contributors and licence details

Creator: Waterfield, Elizabeth (orcid logo0009-0006-3725-6730)

Reviewer: von Grebmer zu Wolfsthurn, Sarah (orcid logo0000-0002-6413-3895)

Consultant: Ihle, Malika (orcid logo0000-0002-3242-5981)


CC BY 4.0 SA

This work was originally created by Anna Krystalli from RSE-Sheffield under a MIT licence (original repository). It was subsequently adapted by Malika Ihle during her time at Reproducible Research Oxford, with the contributions of Adam Kenny. This work by Elizabeth Waterfield, Sarah von Grebmer zu Wolfsthurn, and Malika Ihle is licensed under a Creative Commons Attribution 4.0 International SA License (CC-BY-SA 4.0). Code snippets are dedicated to the public domain and licensed under a Creative Commons Universal License (CC0 1.0).

Back to top