• Home
  • About
  • Schedule
  • Sessions
  • Code of Conduct

Contents

  • Objectives
  • Tasks
  • Exercises
  • Slides
  • Resources

Git: Setup & Configuration

Starts at:

Friday, 10:45

Objectives

💡 You know how to set up Git for the first time
💡 You have set up Git on your computer
💡 You know how to configure your username and email address in Git
💡 You understand the difference between the three Git configuration levels
💡 You know how to set up a new RStudio Project for Quarto

Tasks

In this session, you will work on the following tasks:

  1. Reading: Read the chapter(s) Setup in the Version Control Book.
  2. Implementation: Try out the commands in the chapter.
  3. Exercises: Work on the exercises.

As always:

  1. Try out the commands of this session and play around with them.
  2. Check whether you have achieved the learning objectives.
  3. Ask questions!

Exercises

  1. If needed, navigate into the project folder when using the command line.
  2. Set your Git username.
  3. Set your Git email address.
  4. Change the default name of the initial branch to main
  5. 🚀 Optional: Change your default text editor when using the command line.
  6. List the Git configuration settings.

Slides

NoteHow can I download the slides as a PDF file?

To export the slides to PDF, do the following:

  1. Toggle into Print View using the E key (or using the Navigation Menu).
  2. Open the in-browser print dialog (CTRL/CMD+P).
  3. Change the Destination setting to Save as PDF.
  4. Change the Layout to Landscape.
  5. Change the Margins to None.
  6. Enable the Background graphics option.
  7. Click Save.

Note: This feature has been confirmed to work in Google Chrome, Chromium as well as in Firefox.

Here’s what the Chrome print dialog would look like with these settings enabled:

These instructions were copied from the Quarto documentation (MIT License) and slightly modified.

Resources

  • RStudio User Guide: “Version Control”
  • “Happy Git and GitHub for the useR” by Jennifer Bryan

© 2026 Dr. Lennart Wittkuhn

 

License: CC BY 4.0