Skip to main content

Lecture X - Git and Your Project

Programming with Python

Author
Affiliation

Dr. Tobias Vlćek

Kühne Logistics University Hamburg - Fall 2026

Checkpoint 5

Sessions VIII-IX. The first 40 minutes are the checkpoint. It starts now: the board runs one final audit before the big news.

  • Individual work: no neighbors, no messaging
  • Any AI tool is allowed: the graded skill is to VERIFY its output
  • The link is on Moodle. Open it and start
  • 3 longer tasks: clean a messy export, answer the investor’s question from it, draw the chart for her last slide
  • It sweeps Sessions VIII-IX: cleaning and groupby in pandas, a chart by the rules of Episode 9

When you’re done

Cmd/Ctrl+S, then menu → Download → Download Python code → upload the .py to the “Checkpoint 5” assignment on Moodle, before the 40 minutes are up. No retakes: one sitting.

No live checks this time. Every task only says “recorded”, never correct or wrong: checking is the job. An LLM judge scores the chart with five yes/no questions from Episode 9, and I check every one of its judgments myself. Everything in it was rehearsed in the labs.

EP 10: The Exit

The deal closes

The checkpoint is behind you, and so is the startup. Overnight rival chain MunchCorp stopped competing and made an offer: they’re buying the company. The investor read the term sheet, did the math against her own, and told you to take it: her money would have bought growth, theirs buys the whole shop.

Lawyers will tell you deals close on the numbers. This one closed on yours. The clean order data you pulled together in the data room (Session VIII) and the pitch deck you built from it (Session IX) are exactly what convinced the acquirer the books were real.

No cliff-edge growth chart with a chopped axis. Just data that survived a second look. That’s why they signed.

The handover

Tobi’s job today is to hand over the data room: the folder with every file the company ever built.

MunchCorp’s lawyer opens it and asks two questions:

  • growth.png: is this the chart the investor saw, or has it changed?
  • orders_messy.csv: who changed it after Tobi’s export, and what?

Nobody can say. A folder shows what is in it now, and nothing about how it got there. Today you give a folder a history, with a tool called git.

The exit package

Every acquisition comes with an exit package. Here’s yours: you don’t join MunchCorp. You spin off your own idea and build it.

  • The tools are the ones professionals use: uv and Zed have been on your laptop since Session VII, git and GitHub join them today
  • The work is a real project, built in a group of three, over the next weeks
  • Today we set up the repo as the building starts there

The Project

The brief

Over the next weeks you build and present one real project.

  • Work in groups of three: a pair only where the numbers require it
  • Demos are in Session XII: 7 minutes, plus 3 minutes for questions
  • Deliverable: a GitHub repository link, handed in on Moodle before your own demo
  • The repo’s README.md carries a short AI-disclosure section: which tools you used, what for, and what you verified yourself

Pick something you’re actually interested in. You’ll spend real hours on it.

How it counts

  • Project and presentation together are worth 40 of the 100 course points, judged on scope, work and presentation. Everyone in a group gets the same points
  • Your commit history counts: it’s the evidence of how the work happened, which the final state alone can’t show. Commit small and often (git block, shortly)
  • Session XI is a supervised work session: I’m in the room while you build, so you can ask your questions

The project need not be flawless, an unfinished one can be presented too! Show that you scoped it realistically, built it in the open, and can explain your own code.

Games you can play at the demo

The Beer Game, online: the supply chain classic, with computer players

Dispatch: a live map of Hamburg, and you assign the couriers

Logistics Exchange: trade logistics stocks and oil while the news breaks

Stack the Yard: Tetris for a container terminal

Reverse the Trailer: back a truck into the dock, level by level

Plan, load and route

Load the Trailer: 33 pallets, no overloaded axle, then the computer beats you

Monday Route Sheet: a real shop’s delivery list in, a driver sheet out

Charge When Cheap: forecast the power price, plan ten electric trucks

Simulate a real system

Digital twin: an animated copy of a real place, built from your own counts

Chokepoint: close Suez or Hormuz and watch Hamburg’s shipping lanes reroute

Machines that see

Who Owns This Box: your own photos teach a model to name the shipping line

Shelf Gap: daily shelf photos teach a model to spot where a shelf is empty

Measure the Parcel: one phone photo gives length, width, height and the price

Scan to Track: real DHL and Hermes labels in, your own tracking dashboard out

Your own idea

  • It is the best choice, once I approve it. Make it ambitious
  • Tell it to me today, and we settle scope and feasibility together
  • Every idea on the menu in full, with its core, its stretch and the work for three people: Project Ideas

Form your group

One rule for every group

You build your project with the agent, and the agent lives in Zed. So every group needs a laptop that runs Zed.

  • Zed doesn’t run on an iPad, so three iPads can’t form a group
  • Only an iPad? Join a group that has a laptop. You can still work on the project: in a GitHub codespace, or on that laptop

Take ~25 minutes

Right now:

  • Find your two partners. No group yet? Ask me, I’ll match you
  • Pick a direction from the provided ideas, or bring your own
  • Talk it through!

A good outcome by the end of this block: a one-sentence pitch (“we’re building X that does Y for Z”), a name for the project, and a decision on who owns the shared repo (the owner creates it in the git block; the partners clone).

Your First Repo

Your setup from Session IX

Your laptop passed the git check last week. One look before we build, in Zed’s terminal (Ctrl+`):

gh auth status

Logged in to github.com? You’re set.

Missed Session IX, or the login has gone? Sit with a partner whose laptop works and follow along on the slides. The one-time setup takes ten minutes, at the break or with me in Session XI.

Your project starts on GitHub

Everyone, right now, create a practice repo. On github.com click New repository, then:

  • Name: python-practice
  • Private; tick Add a README file
  • .gitignore template: Python

Create repository, then copy the HTTPS URL from the green Code button: https://github.com/you/python-practice.git

That’s a repository: a folder git watches, with its whole history. So far it is only on GitHub.

Bring it down: clone

In Zed’s command palette (Cmd/Ctrl+Shift+P): git: clone, paste the URL, and pick the parent folder that your course code sits in, so the repo lands next to it and not inside it. Zed opens the new folder as your workspace: the file tree on the left shows README.md and .gitignore.

The same in the terminal. Use one way, not both:

git clone https://github.com/you/python-practice.git

Everything from here on happens inside this folder: git, uv, the AI. If Zed ever shows an empty file tree, File → Open Folder and pick the cloned folder itself.

Make it a Python project: uv init

Open Zed’s built-in terminal (Ctrl+`); it starts inside your workspace. Then:

uv init --no-package
uv run python main.py

uv init adds main.py, pyproject.toml and .python-version next to the README.md and .gitignore that GitHub made. The second line runs main.py the way you run a lab, and prints Hello from python-practice!

--no-package keeps it a flat folder of scripts. Without it, uv builds an installable package layout you don’t need yet. And no git init: the folder came from GitHub, it is a git repository already.

Same agent, new folder

Part III encourages AI, and your agent is already here: Mistral Vibe works in whatever folder Zed has open. Open the agent panel and ask:

Explain what main.py does, then add a one-line comment at the top that says so. Don’t change anything else.

This time, watch the panel while it works: what does Vibe do before it shows you a change? Then read the diff before you accept it.

The disclosure rule applies from today: your repo’s README.md says which tools you used, what for, and what you checked yourself.

Inside the panel: a model in a loop

  • Mistral Vibe is an agent, wired into a loop with tools
  • The model proposes an action: read a file, edit a line, run a command
  • The tool runs it, the result feeds back, and it proposes again, until the goal is met
  • No magic, and no memory between sessions

Every failure mode from Sessions VI and VIII applies at every step, and a loop gives them many steps to compound in. The diff you just read is the guardrail.

One prompt, no feedback

Ethan Mollick, an entrepreneurship professor, gave Anthropic’s model Fable 5.2 a single prompt: “create the most impressive thing I can share with people when you launch.” He gave no feedback after that (Mollick 2026).

Watch what it made, to the end

Mollick also found some misses. Fable’s first course website was “accurate and joyless”, and “the AI did not notice these problems itself.” Noticing stays your job (at least for now).

Git

The five words

Git has a small vocabulary. These five cover all this project needs:

  • Repository: a folder git watches, with its whole history
  • Commit: one saved snapshot, with a short message
  • Push: send your commits up to GitHub
  • Pull: bring your partners’ commits down to you
  • Clone: make your own copy of a repo from GitHub

Two of them you’ve already done: the repo exists, and you cloned it. The other three now, live, in your practice repo.

Your first commit

Your folder has new files worth saving: main.py with its new comment, pyproject.toml, .python-version, and uv.lock, the exact package versions, so every laptop installs the same ones. In Zed’s command palette:

  • git: stage all: mark everything as part of the snapshot
  • git: commit (Cmd/Ctrl+Enter): type a message, save it

The same thing in the terminal, the words you’ll see everywhere:

git add .
git commit -m "Set up the project"

A commit lives only on your computer. Next we send it to GitHub.

Push

Because the folder came from GitHub, git already knows where “up” is. In Zed: git: push. In the terminal:

git push

Reload the repo page on github.com: main.py is there. That’s the commit cycle you’ll repeat all project long: edit → commit → push. Pull is the other direction; you’ll see it in a minute.

Your history

Two commits in, the folder has a history. Read it:

git log --oneline

One line per commit, newest first: a short ID and the message. Yours sits on top of GitHub’s Initial commit. On github.com, Commits (top right of the file list) shows the same list with author and time, click a commit to see what it changed.

That answers the lawyer for every file in the repo: who changed it, when, and what it looked like before. It’s also the list I read when I grade your project. Set up the project tells me something; stuff doesn’t.

The real project repo: owner only

Now the one that counts. Repo owner only, same recipe as the practice repo, with four extras:

  1. Name it after your pitch; Private, README, Python .gitignore
  2. Settings → Collaborators: invite your partners and me (my GitHub username is on Moodle), so I can read it for grading
  3. Clone it in Zed, uv init --no-package, commit, push, as before
  4. Needs pandas or matplotlib? uv add pandas matplotlib in this folder: every project has its own packages

Partners: don’t create a second project repo. You’ll be invited.

Your partners join

Each partner accepts the invitation (GitHub e-mails it) and clones the project into a fresh folder, next to the practice repo:

  • In Zed: git: clone, paste the project’s HTTPS URL

Or in the terminal:

git clone https://github.com/owner/project.git

Cloning brings the whole project, its history and the connection to GitHub; the partners push and pull normally from the first moment.

The fifth word: pull

  1. The owner writes your one-sentence pitch into README.md, with a heading ## AI disclosure below it, then commits and pushes
  2. Both partners run git: pull (git pull --no-edit): the pitch lands on their laptops
  3. One at a time: a partner adds a line under the heading, commits and pushes, and the other two pull. Then the next partner

All of you have now pushed and pulled in the real repo. On github.com, Commits shows every name.

How we work together

Three people, one repo. Four habits keep it easy:

  • Pull before you start. git: pull first, every session: this alone prevents almost every problem
  • Commit small and often. Clear messages, no giant commits
  • A conflict? Call me. If git marks a clash, don’t fix it alone in week one. Ask me!
  • Never force anything. No --force, no “force push”, ever

Everything today (the actions, the terminal equivalents, the setup, and a cheatsheet table) lives on the Git Basics page.

Send-off

The road to the finish

  • Session XI: work session, plus teaching your agent your project’s rules, and why AI text now carries a watermark
  • Session XII: Final presentations, and what AI means for your first job

Between now and then, the repo tells your story. Commit as you go!

Demo Day

Format

  • 7 minutes per group presenting, 3 minutes of questions
  • All demos are in Session XII, and everyone in the group has to be there
  • Order: drawn at random at the start of the session, with the random module from Session VI

What to show

  • The thing running. The output, and the command that produces it
  • Your AI disclosure. Which tool, what for, what you verified yourself
  • What went wrong. Where you had to step in, what cost you an hour

Your computer, your repo, your demo: it must run in class.

The reference pages

The Git Basics page is the reference version of everything we did live today. The setup from Session VII lives on Installing Python and AI Tools.

Literature

References

Mollick, Ethan. 2026. Fable 5.2 and Jagged AGI. https://www.oneusefulthing.org/p/fable-52-and-jagged-agi.