Git: Setup & Configuration
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:
- Reading: Read the chapter(s) Setup in the Version Control Book.
- Implementation: Try out the commands in the chapter.
- Exercises: Work on the exercises.
As always:
- Try out the commands of this session and play around with them.
- Check whether you have achieved the learning objectives.
- Ask questions!
Exercises
- If needed, navigate into the project folder when using the command line.
- Set your Git username.
- Set your Git email address.
- Change the default name of the initial branch to
main - 🚀 Optional: Change your default text editor when using the command line.
- 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:
- Toggle into Print View using the E key (or using the Navigation Menu).
- Open the in-browser print dialog (CTRL/CMD+P).
- Change the Destination setting to Save as PDF.
- Change the Layout to Landscape.
- Change the Margins to None.
- Enable the Background graphics option.
- 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.