Summary and Schedule
Introduction to git and GitHub for technicians
Welcome to this material providing a very brief introduction to git and GitHub, aimed at technicians. This online lesson content has been prepared using the The Carpentries Workbench.
ByteSized Training Format
This session follows the ByteSized short-format technical training structure developed for sessions run under the UNIVERSE-HPC project.
The general structure of the session is as follows:
-
Part 1: Introductory presentation
The instructor will run through a short lecture-style presentation with some core background material and details of the session aims.
-
Part 2: Interactive tutorial
An interactive tutorial that will give you some hands-on experience of the material introduced in the introductory talk.
-
Part 3: Q&A / discussion
While the session is intended to be quite interactive and we encourage participants to ask questions during parts 1 and 2 of the session, this final part provides some dedicated time for discussion and the opportunity for participants to ask questions about more advanced aspects of the topic or advice relating to specific use cases that they have.
| Setup Instructions | Download files required for the lesson | |
| Duration: 00h 00m | 1. Part 1: Introduction to git and GitHub |
What is git? A version control tool? What does that mean? How can version control help me? Are git and GitHub the same? |
| Duration: 00h 20m | 2. Part 2: Getting started with git |
How do I manage some files with git? What are the most basic git commands? How do I use them? Why are we using the command line?! |
| Duration: 00h 50m | 3. Part 3: Getting started with GitHub |
How do I use GitHub?! How can I add my files to a GitHub repository? What are the benfits of using GitHub? |
| Duration: 01h 20m | 4. Git and GitHub: Where next? |
I can create a git repository and push it to GitHub, what next? What other things can I do with GitHub. Where can I get more help and information? |
| Duration: 01h 30m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
Prerequisites / setup information
As noted in the information sent out prior to the session, you need some tools installed on your computer in order to participate in the interactive tutorial element of the session.
The details provided are as follows:
Terminal and git
-
You will need access to a terminal (sometimes called a shell) and git on your computer.
If you are using Windows:
- Install “git for windows” which will provide both git and a terminal (the Git Bash application).
If you are using Linux or Mac:- A terminal is available by default and git may also be installed. If it’s not, see the git installation instructions for help.
How to check if git is installed and available on your computer:Open a terminal window:
For macOS users, open Terminal.app from your Applications folder.
For Windows users, if you’ve installed git for windows, open the “Git Bash” application.
(if you’ve never used a terminal before, you can exit it by simply typing “exit” - without the quotes – and pressing Enter/Return)
Run the command
git --versionat the terminal prompt (without the quotes).If you see something like
git version 2.51.1(the version number on your system may well be different), then you’re ready to go!If you see something like
git: Command not found., then git has not been successfully installed.
GitHub.com Account
-
Sign up for a GitHub account if you don’t already have one:
Go to https://github.com and click sign up at the top right of the page.
One you’ve created an account, you will have a basic, free GitHub account which will work fine for the purposes of this session.
Many universities/research organisations have a GitHub subscription and an associated institutional “GitHub organisation” that you can join. Check relevant institutional web pages or perhaps ask a colleague whether your organisation has its own GitHub organisation. Institutional GitHub organisations are often linked to a GitHub Enterprise account that may offer additional features and functionality.