Summary and Schedule
What We Will Try to Do
Begin to understand and use Git/GitHub. You will not be an expert by the end of the class. You will probably not even feel very comfortable using Git. This is okay. We want to make a start but, as with any skill, using Git takes practice. In this lesson we use Git from the Unix Shell. Some previous experience with the shell is expected, but is not mandatory.
Be Excellent to Each Other
- If you spot someone in the class who is struggling with something and you think you know how to help, please give them a hand. Try not to do the task for them: instead explain the steps they need to take and what these steps will achieve.
Be Patient With The Instructor and Yourself
- This is a big group, with different levels of knowledge, different computer systems.
- This isn’t your instructor’s full-time job (though if someone wants to pay them to play with computers all day they’d probably accept). They will do their best to make this session useful.
- This is your session. If you feel we are going too fast, then please put up a pink sticky. We can decide as a group what to cover.
Prerequisites
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. What is Git/GitHub? |
What is Git? What is GitHub? |
Duration: 00h 10m | 2. Getting started with Git |
What are repositories and how are they created? What do add and commit mean?How do I check the status of my repository? |
Duration: 00h 35m | 3. Sharing your work |
How can I use Git and GitHub to share my work? How do I link a local Git repository to GitHub? How do I move changes between a local Git repository and a GitHub repository? How can I see the differences between my current file and my most recent commit? |
Duration: 01h 50m | 4. Review | How can I cement my understanding of Git’s functions? |
Duration: 02h 15m | 5. GitHub Pages |
What is GitHub Pages? How can I use GitHub Pages to collaborate and share my work? |
Duration: 02h 50m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
Installing Git
Since several Carpentries lessons rely on Git, please see this section of the workshop template for instructions on installing Git for various operating systems.
Creating a GitHub Account
You will need an account for GitHub to follow this lesson.
- Go to https://github.com and follow the “Sign up” link at the top-right of the window.
- Follow the instructions to create an account.
- Verify your email address with GitHub.
- Configure multifactor authentication (see below).
Multi-factor Authentication
In 2023, GitHub introduced a requirement for all accounts to have multi-factor authentication (2FA) configured for extra security. Several options exist for setting up 2FA, which are summarised here:
- If you already use an authenticator app, like Google Authenticator or Duo Mobile on your smartphone for example, add GitHub to that app.
- If you have access to a smartphone but do not already use an authenticator app, install one and add GitHub to the app.
- If you do not have access to a smartphone or do not want to install an authenticator app, you have two options:
The GitHub documentation provides more details about configuring 2FA.