Git Tutorial#

Sign-Up to the workshop here (being logged in with your DTU Microsoft account): Sign-Up Form

Announcement#

This workshop will give you the opportunity to practice git as a version control system and Github as a website to host your repositories. Using git you can track changes in folders. It allows you track your progress and to spot random typos when working on many projects and tasks in parallel. In the workshop you will get the time to practice the fundamental concepts and actions directly in your browser - either using VSCode in GitHub Codespaces or in using the GitHub web interface. If you want, you can also try everything on your local computer.

I will give a brief introduction to git. Then you will specific workflows by collaboratively work on extending a recipe book (please bring a recipe you like). You will learn how to work on branches, review Pull Requests and merge them into the main branch. If you have specific requests, feel free to reach out to me.

If you have specific requests, feel free to reach out to me and/or write it down in the sign-up form.

What you’ll learn:

  • Basic tasks and actions to perform with git (in VSCode or in the browser)

  • How to branch and tag

  • Follow trunk-based development

  • See how to merge and comment a Pull Request based on a branch

  • Solve merge conflicts

  • Familiarize yourself with VSCode’s and GitHub’s interface and user experience

  • Get to know new recipes

Minimal prerequisite: A GitHub account. If you want to follow along locally, please install GitHub Desktop and VSCode on your machine.

Brief timeline of the workshop:#

Time

Activity

10:00 - 10:15

Coffee and snacks 🥐

10:15 - 10:45

Introduction and example workflow

10:45 - 12:00

Working collaboratively on the recipe book

12:00 - 12:30

lunch break (not included)

12:30 - 13:30

Your question and advanced content

Slides#

Local Setup#

See local_setup for instructions to setup git on your local computer.