• Home
  • About
  • Schedule
  • Sessions
  • Team
  • Mechanics
  • Code of Conduct
  • Acknowledgements

Contents

  • This session
  • recipes project
  • Learning objectives
  • Slides
  • Email

First steps with Git

Session 03

Starts at:

April 22 2024 (12:15 pm)

Slides Chapter: Installation Chapter: Setup Chapter: First steps with Git Survey: Installation

This session

In this session, you will complete the following tasks:

  1. Read the chapters “Setup” and “First steps with Git” in the Version Control Book.
  2. Complete the exercises for the recipes project in the “Setup” chapter and “First steps with Git” chapter in the Version Control Book

As always:

  1. Try out the commands in the chapters and play around with them.
  2. Check whether you have achieved the learning objectives.

recipes project

At the end of this session, you should have accomplished the following:

  1. You set up Git.
  2. You initialized your recipes folder as a Git repository.
  3. You committed your first recipe to the recipes repository.

Please keep the recipes folder! We will continue to use it in the following sessions.

Learning objectives

💡 You know how to set up Git for the first time
💡 You have set up Git on your computer
💡 You understand the difference between the three Git configuration levels
💡 You know how to configure your username and email address in Git
💡 You have set up your preferred text editor when working with Git
💡 You can escape the command-line text editor Vim

💡 You can initialize a Git repository
💡 You can stage and commit changes
💡 You know how to explore the commit history
💡 You can compare different commits
💡 You know how to use and create a .gitignore file
💡 You can discuss which files can (not) be tracked well with Git and why
💡 You know how to track empty folders in Git repositories

Slides

How can I download the slides as PDF?

To print 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:

Screenshot of Chrome print dialog with the first slide/page of 43 shown on the left, and print options on the right. The Destination print option has Save as PDF selected.

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

Email

Dear course participants,

You are receiving this email because you are enrolled in the course “Track, organize and share your work: An introduction to Git for psychological research”, which is taking place this summer semester at the University of Hamburg. This is one of the few occasions when we will ask you to complete additional tasks outside of class time.

First, we hope that your initial explorations of the command line were intriguing and insightful. Regarding this session’s contents, we kindly ask you to complete the following tasks:

  1. Finish reviewing the chapter about the command line and explore the various commands
  2. Complete the exercises/quiz questions in this online survey: https://version-control-cli.formr.org/

We are very much looking forward to our next session on Monday when we will take our first steps in using Git! For this session, it is important that you verify whether Git is installed on your computer. To do this, we kindly ask you to complete the following tasks before our next meeting:

  1. If you haven’t yet completed the installation, please install Git. The Version Control Book provides a chapter about “Installation” which should help you with the installation process: https://lennartwittkuhn.com/version-control-book/chapters/installation.html Send us an email if you encounter any problems during the installation process.
  2. Everyone: Please complete our (short) survey regarding the installation process: https://version-control-installation.formr.org

Please ensure that you complete the surveys before our next session, ideally by Sunday evening at the latest. This will give us enough time to review your responses before our session on Monday.

Further information about the course can be found on our course website: https://lennartwittkuhn.com/version-control-course-uhh-ss24/

If you encounter any issues or have any questions, please feel free to contact us directly via email.

We are looking forward to seeing you for the next session on Monday!

Best wishes,

Lennart Wittkuhn (Instructor) & Konrad Pagenstedt (Teaching Assistant)

© 2023 – 2025 Dr. Lennart Wittkuhn
  • Acknowledgements
License: CC BY 4.0