Endpreise in CHF – Versand inklusive Schweizer Unternehmen · 076 792 63 50 (WhatsApp/SMS)
Kurse › Raspberry Pi › Stufe 16
Raspberry Pi · Intermediate · Stufe 16 / 40

Git and Project Workflow

Version, test and deploy Pi projects like a professional using Git, pytest and remote editing.

Intermediate freischalten · CHF 19.90 Stufen 14–26, einmalig, kein Abo

10 Lektionen in dieser Stufe

  1. Tracking Changes with git init, add and commit
    Record snapshots of a project with meaningful messages. · Lab: Put the sensor project under Git and make three small, well-described commits.
  2. Reading History and Undoing Mistakes
    Inspect diffs and safely revert or restore changes. · Lab: Break the program on purpose, find the change with git diff and git log, and undo it.
  3. Branching and Merging for Experiments
    Try ideas on a branch and merge or discard them. · Lab: Add a feature on a branch, merge it and resolve one deliberate conflict.
  4. Ignoring Secrets and Generated Files
    Keep passwords, venvs and data out of the repository. · Lab: Write a .gitignore, move a secret into an untracked file and confirm git status is clean.
  5. Pushing to a Remote Repository over SSH
    Publish a repository to a hosting service or a bare repository on another machine. · Lab: Create a remote, add a deploy key and push the project.
  6. Deploying to a Pi with git pull
    Update a device from the repository and restart its service in one step. · Lab: Write a deploy script that pulls, installs requirements and restarts the unit.
  7. Pinning Dependencies with Requirements Files
    Rebuild an identical environment on any Pi. · Lab: Freeze the venv, recreate it from scratch on a second card and run the program.
  8. Unit Testing Hardware Code with Mock Pins and pytest
    Test GPIO logic on any computer using gpiozero's mock pin factory. · Lab: Write tests that press a mock button and assert the LED state.
  9. Editing on the Pi from a Laptop over Remote SSH
    Use a desktop editor against files that live on the Pi. · Lab: Open the project through a remote SSH editor session, set a breakpoint and step through a sensor read.
  10. Tagging Releases and Keeping a Changelog
    Mark known-good versions and describe what changed. · Lab: Tag v1.0.0, write a changelog entry and roll the Pi back to the tag.

Abschlussprojekt

Your appliance in a Git repository with tests that run without hardware, tagged releases and a one-command deploy that updates and restarts the service on the Pi.

Teile für diese Stufe

  • 1 × Raspberry Pi 5 or Pi 4 set from Level 1
  • 1 × Laptop or desktop computer for remote development

In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Raspberry Pi →

Voraussetzung: Levels 4, 10 and 15: SSH keys, modular Python projects and systemd services.

🔒 Sichere Zahlung · 3D Secure 🔐 SSL-verschlüsselt 🚚 Versand in die ganze Schweiz 🇨🇭 Schweizer Unternehmen