Intro to git
Course Introduction
First things first: Language ๐ฌ๐ง/๐ฉ๐ช
- Slides are in English
- Spoken: German or English?
- Do you have a preference / does anyone not speak German?
What is the course about?
- Goal: Learn everything that is necessary to effectivelyโฆ
- use
git
to track your own work
- use
git
to collaborate with others
- Format: Mix of theory & practicals
- Feel free to always ask questions any time!
Agenda & Timeline
- 10:00 - 11:30 Block 1: Introduction & Basics (1:30)
- 11:30 - 11:45 Pause โ๏ธ
- 11:45 - 13:00 Block 2: Branches & More (1:15)
- 13:00 - 14:00 Lunchbreak ๐ฒ
- 14:00 - 15:15 Block 3: Collaboration via Github (1:15)
- 15:15 - 15:30 Pause โ๏ธ
- 15:30 - 16:45 Block 4: Advanced Github & Beyond (1:15)
The speed of the class is always a bit variable, so the number of covered topics may differ a bit.
Introductions: Who am I? ๐๐ผโโ๏ธ
- Jan Simson
- Doing PhD at Ludwig-Maximilian University Mรผnchen
- Background
- Computer Science (Ausbildung)
- BSc Psychology (Konstanz)
- MSc Behavioural Data Science (Amsterdam)
- Worked at research lab & startup before
- Worked with
git
for a couple of years
Introductions: Who are you? ๐๐ปโโ๏ธ๐๐ฝโโ๏ธ๐
- What do you wish to learn from this course?
- Do you have any experience with git already?
- Whatโs your GitHub username?
https://pingo.scc.kit.edu/
Introductions: Administration ๐
- I will go over the list of registered students
- Is everyone registered for the course?
Prerequisites (Any Problems?)
- Software
- git: The tool itself
- Sourcetree: A graphical user interface (GUI) to use git
- Visual Studio Code: A text editor, which also allows using git via its GUI
- GitHub: Website to collaborate via git
Text Editor: Visual Studio Code
Screenshot of VS Code
Text Editor: Visual Studio Code
- Text Editor: A program to write text
- Only text i.e. no layouting / formatting (unlike Microsoft Word)
- Quick Demonstration
- Opening workbench in a folder
Practical: Folder Structure
Screenshot of the folder structure weโll use
Practical: Text Editing
- Open Visual Studio Code on your computer
- Explore the UI
- Set a theme if you want to
- Create a new folder called
repositories
- Inside it, create a new folder called
git-exercise
- Open
git-exercise
in Visual Studio Code
- Create a new file
test.txt
and write in it
Hello World!