This course was designed for educators; however, the explanations and presentation of the concepts in the first two modules is suitable for anyone interested in getting started with Git and GitHub (or similar) repositories.
Modules 3 and 4 introduce GitHub Classroom and GitHub Education that are more appropriate for educators (using repository templates and GitHub Actions in GitHub Classroom can make for effective learning opportunities and save time by providing automated feedback 😉). Module 5 introduces using AWS Cloud (in the classroom).
The components of this course have been derived or directly copied from GitHub Campus Advisor training to provide a basic introduction to using Git. The original course was solely designed for educators.
These materials have been updated to introduce using VS Code. There are linked videos that may refer to Atom (that is now deprecated) although additional instructions are included in an effort to ensure that VS Code can be used as a drop in replacement.
A further iteration of this course is likely to make it less tied to github.com; KCL users also have access to github.kcl.ac.uk.
If you find instances where things can be improved, then please create an issue in the original repository here. If you are not familiar with issues in GitHub, no worries, you will learn about them soon.
-
Register for an account on github.com.
-
Download, install and configure git.
- If offered a selection of editors during installation, choose one you recognize and are comfortable using.
- For all other options, the default settings are suitable for getting started.
-
Open VS Code and open a terminal.
- The default terminal application is suitable.
- Select Terminal from the View menu.
- The default terminal application will be PowerShell.
- To follow the terminal commands demonstrated throughout this course (and generally work better with Git):
- Press
Ctrl + Shift + P - Type:
Select Default Profileand press Enter (or click on the command) - Select Git Bash from the displayed options.
- Press
- Select Terminal from the View menu.
-
In the terminal that appears at the bottom of the VS Code window, set Git with the name and email address you used in step 1 using the following commands:
$ git config --global user.name "FirstName LastName"
$ git config --global user.email "email@example.com"
This is important because Git uses this information when you work on a project.
- Create a repository from this template by clicking on "Create a new repository"
If you are doing this as part of an e-Research course at KCL where you have been given access to a namespace; please use a Repository name in the format introducing-git-FirstName-LastName
Once the repository is copied; click on Module 1 and you will be presented with an overview and links to video lessons from the directories README.md file with associated markdown (.md) files with guidance for completing assignments.
If you are a KCL user and have any questions regarding setup or about any of the learning modules, please create an issue in the original repository here or contact e-Research support for assistance.
Create Module 5 for more specific on working with Git in KCL environments
