Intro to git

Course Introduction

Jan Simson

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

  1. Open Visual Studio Code on your computer
    • Explore the UI
    • Set a theme if you want to
  2. Create a new folder called repositories
  3. Inside it, create a new folder called git-exercise
  4. Open git-exercise in Visual Studio Code
    • Create a new file test.txt and write in it
      Hello World!

End of Section ๐ŸŽ‰

Any Questions?

[๐Ÿก Back to Overview]

[โฉ๏ธ Next Section]