This is an introduction to Git at a very basic level, intended for complete beginners, or those who have struggled to start using it.
Version control allows you to track the changes you make to a collection of files (eg one analysis project) over time and easily return to previous versions and share the files (with their history) with others.
This training will cover setting up your first Git repository, as well as basic individual use.
Topics to be covered:
What is Git and why use Git?
Initialising local Git repository
Committing and reviewing changes
“Ignoring” files
Visualising Git via Visual Studio (VS) code
Git branches
Learning Objectives:
Understand the benefits of Git
Create a local Git repository
Track and view changes using Git
Understand why and how to “ignore” some files
Visualise Git using VS code
Understand why branches are useful and how to use them
Prior knowledge required:
Familiarity with command line may help but is not required.
Intended audience:
People who use scripts in their jobs but have not used Git before, or who have tried to use it but struggled to get started.
Audience requirements:
If you wish to participate in the practical then you should have installed Git and VS Code.
A second screen may be helpful, but is not necessary.
Pre-course work:
Please install Git and VS Code (instructions will be provided)
If you have any difficulties with installation, we will be available 10mins before the start of the session to help troubleshoot.
Type of session:
Presentation followed by live coding practical. (We will demonstrate on screen share, participants can follow along on their own computers)
Software required:
Git, Visual Studio (VS) Code
Operating System:
We will be using Windows (so will be better able to help with that) but participants can use iOS and Linux