diff --git a/README.md b/README.md index ecc4569..93ac10c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ -# Soilpunk - Joulethief - -## [View the slides here](https://hackersanddesigners.github.io/soilpunk_joulethief_slides/html_output/index.html) or the [plain text document here](https://github.com/hackersanddesigners/soilpunk_joulethief_slides/blob/master/slides.rst) - ----- +Braids - Git workshop slides +============================ The slides are generated from a .rst by [Hovercraft](https://github.com/regebro/hovercraft). - [Docs](https://hovercraft.readthedocs.io/en/latest/presentations.html#) diff --git a/html_output/index.html b/html_output/index.html index 39e112d..8e40ce0 100644 --- a/html_output/index.html +++ b/html_output/index.html @@ -1,7 +1,29 @@ -
Soilpunk 🌏🤘 - Joulethief
This document is viewable as a webpage or as a slideshow



Water analogy: the little bit of water from B to E opens the gate for the bigger flow from C to E


A small current flows from the battery through the coil and the base-emitter path of the transistor. This opens the emittor-collector path of the transistor.

Electricity is now able to travel through the second coil and through the collector-emitter channel of the transistor.

The increasing amount of electricity through the second coil generates a negative voltage in the first coil, which cause the transistor to close.

With the transistor closed the energy starts to flow through the output (led).

The inductor is now powered by the magnetic field of the coil.
A more detailed explanation can be found on instructables

Make sure to get the LED polarity right. Short leg goes to ground!
Braids - Intro to Git
Goal: introduce Git as an archiving practice (history, provenance, selection), +then do a playful branch-based website exercise published live.
Archiving analogy:
Each participant will:
Check first:
git --versionIf missing:
Minimum requirement: you can run git in a terminal.
git config --global user.name "Your Name" +git config --global user.email "you@example.com"
Check:
git config --global --list
This shows up in commit metadata (provenance).
This is why Git feels "archival":
Create a repository in the current folder.
git initCreates a .git/ directory containing history + metadata.
For the exercise we will use git clone instead of git init.
Cloen (copy) a repository in the current folder.
git clone <repo_url> <destination>
Downloads a repo from the web, complete with the full commit history and all changes.
git statusShows:
Stage files for the next commit.
git add index.html +git add assets/
Stage everything (use carefully):
git add .
Staging is curatorial: select what belongs together.
git commit -m "Added name to my page"
Good commit message pattern:
Unstaged changes:
git diffStaged changes:
git diff --staged
git log --oneline --graph
Gives a quick "finding aid" of earlier commits. Press 'q' to exit.
List branches:
git branchCreate a branch:
git branch people/yourname
Switch to branch:
git checkout people/yourname
Shortcut (create + switch):
git checkout -b people/yourname
Branches are parallel dossiers: safe space for changes.
Push your branch to the server:
git push -u origin people/yourname
Pull updates from server:
git pullDuring the exercise you mostly push your branch. +Pull is mainly for getting new changes on main (if needed).
Remove a tracked file and stage the removal:
git rm old.html +git commit -m "Remove old page"
For this workshop you probably will not need it.
Rules for today:
We will provide:
You will build a deliberately simple “MySpace-style” page:
Workflow loop:
clone -> branch -> edit -> status -> add -> commit -> push -> view -> iterate
git clone <REPO_URL> +cd <REPO_NAME>
Sanity check:
git status +git branch
Choose a slug: lowercase, no spaces. Example: people/alex.
git checkout -b people/<your-slug>
Confirm:
git statusEdit the root index.html (and optionally style.css, assets/).
Make a visible change first:
Then check changes:
git diff +git status
git add index.html +git commit -m "Customize profile page for <your-slug>"
If you added assets:
git add assets/ +git commit -m "Add assets for <your-slug>"
Small commits win. One change = one deposit.
git push -u origin people/<your-slug>
If prompted for credentials, use your Forgejo login method.
Open the gallery:
Find your card:
Iterate:
edit -> status -> add -> commit -> push -> refresh
Wrong branch:
git branch +git checkout people/<your-slug>
Nothing staged:
git status +git add index.html
Push rejected (main protected):
Auth issues:
Bad:
Better:
Rule: message should still make sense in 6 months.
You should now be able to:
Next steps:
End: remind participants their branches will be removed after the workshop.