Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
47dac79
Update title to 2026
mjaehn Aug 18, 2026
4758e1c
Update advanced slides PDF
actions-user Aug 18, 2026
d00d46c
docs(advanced): restructure exercises into a two-part course
mjaehn Aug 18, 2026
4a57707
style(slides): add warning, quote and table styles to both themes
mjaehn Aug 18, 2026
ce204a2
build(slides): generate diagrams from Mermaid sources
mjaehn Aug 18, 2026
4eb352d
docs(slides): restructure into two parts and drop screenshots
mjaehn Aug 18, 2026
1d62fb4
fix(advanced): make the exercise bootstrap work on macOS
mjaehn Aug 18, 2026
fe6bc7e
test: cover the helper scripts on Linux, macOS and Git Bash
mjaehn Aug 18, 2026
7966aef
docs(advanced): document where each exercise happens
mjaehn Aug 18, 2026
008a215
docs: rename the courses to Git: First Steps and Git: Next Steps
mjaehn Aug 18, 2026
67217db
docs: add Expert_Topics.md for what the courses leave out
mjaehn Aug 18, 2026
22ad122
chore: drop the Python requirement and fix the Marp theme path
mjaehn Aug 18, 2026
f41a7de
ci: check content consistency and lint the shell scripts
mjaehn Aug 18, 2026
726a88b
Update advanced slides diagrams and PDF
actions-user Aug 18, 2026
35bb60e
Update advanced slides diagrams and PDF
actions-user Aug 18, 2026
adfae08
docs: name the series C2SM Git Courses
mjaehn Aug 18, 2026
66c6f14
build(slides): make the rendered diagrams reproducible
mjaehn Aug 18, 2026
0e08db3
Update advanced slides diagrams and PDF
actions-user Aug 18, 2026
e450599
fix: change date and fix build
mjaehn Aug 18, 2026
7b65fcc
Update advanced slides diagrams and PDF
actions-user Aug 18, 2026
9a2b4d3
Update advanced slides diagrams and PDF
actions-user Aug 18, 2026
b87c090
Update advanced slides diagrams and PDF
actions-user Aug 18, 2026
e6279d2
build(slides): make the rendered PDF reproducible
mjaehn Aug 19, 2026
03befd9
Update advanced slides diagrams and PDF
actions-user Aug 19, 2026
f6877fa
docs: use American English spelling and drop em-dashes
mjaehn Aug 19, 2026
eeb0556
docs(schedule): move advanced course to 09:30-15:00 with lunch break
mjaehn Aug 19, 2026
98d295e
Update advanced slides diagrams and PDF
actions-user Aug 19, 2026
173ef56
Update advanced slides diagrams and PDF
actions-user Aug 19, 2026
2bb9005
ci(shellcheck): fix ignore_paths not matching beginner/helpers.sh
mjaehn Aug 19, 2026
51a4679
Merge branch 'content-upate-advanced' of github.com:C2SM/git-course i…
mjaehn Aug 19, 2026
f98db12
Update advanced slides diagrams and PDF
actions-user Aug 19, 2026
7d64f4b
ci(build-slides): skip CI on auto-generated diagram/PDF commits
mjaehn Aug 19, 2026
affd430
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 19, 2026
bb7cc02
Merge branch 'main' of github.com:C2SM/git-course into content-upate-…
mjaehn Aug 19, 2026
f58e044
docs(advanced-slides): add references slide
mjaehn Aug 19, 2026
8d432f6
Update beginner slides PDF
actions-user Aug 19, 2026
b3e98b0
ci(beginner-slides): match advanced slides CI robustness
mjaehn Aug 19, 2026
4b7df4d
Merge branch 'content-upate-advanced' of github.com:C2SM/git-course i…
mjaehn Aug 19, 2026
8e414dd
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 19, 2026
7fa3c47
docs(advanced-slides): move coffee break to 10:50
mjaehn Aug 19, 2026
1c8d63d
Update beginner slides PDF [skip ci]
actions-user Aug 19, 2026
3c1967f
Update slides
mjaehn Aug 19, 2026
be394c0
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 19, 2026
fc82139
review(mj): Exercise 1
mjaehn Aug 19, 2026
e101e70
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 19, 2026
deab5c9
ci(slides): use distinct concurrency groups per slide workflow
mjaehn Aug 20, 2026
89f5729
fix(ci): don't re-render mermaid diagrams if fitting .svg file exists
mjaehn Aug 20, 2026
ac67d5c
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 20, 2026
9ff5ec0
fix(slides): agenda items on one line
mjaehn Aug 20, 2026
55af79b
docs(advanced): add time estimates and hint/solution icons to exercises
mjaehn Aug 20, 2026
7a350bd
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 20, 2026
3d07acb
fix(exercise1): Convert web-interface blame to tip
mjaehn Aug 20, 2026
3ebe7f8
fix(exercise1): some text improvements
mjaehn Aug 20, 2026
b2165b2
fix(slides): stop emoji from wrapping onto their own line in PDF export
mjaehn Aug 20, 2026
1f457c6
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 20, 2026
f4c6389
fix(ci): retry PDF auto-commit push on branch race
mjaehn Aug 20, 2026
dbbfe31
feat: add pre-commit hook
mjaehn Aug 20, 2026
b1f8dc4
fix(hooks): keep pre-commit output quiet unless a check fails
mjaehn Aug 20, 2026
3295aab
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 20, 2026
9cf15bc
Update beginner slides PDF [skip ci]
actions-user Aug 20, 2026
73fcb22
fix(exercise2): drop GitHub fork requirement, keep submodules local
mjaehn Aug 20, 2026
40adcb3
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 20, 2026
fa28d8c
review(slides): clarify .gitignore
mjaehn Aug 20, 2026
d36d27f
Merge branch 'content-upate-advanced' of github.com:C2SM/git-course i…
mjaehn Aug 20, 2026
6dd261f
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 20, 2026
395b057
feat(slides): publish HTML decks with presenter notes to GitHub Pages
mjaehn Aug 20, 2026
b05ba90
docs(advanced-slides): restructure presenter notes as bullet points
mjaehn Aug 20, 2026
7dcfa89
fix(slides): gitmodules graph
mjaehn Aug 21, 2026
2c75687
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 21, 2026
d8699e3
feat(slides): use real commit messages in diagrams and fix overflow
mjaehn Aug 21, 2026
6e3ad16
Merge branch 'content-upate-advanced' of github.com:C2SM/git-course i…
mjaehn Aug 21, 2026
8ce1c89
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 21, 2026
bef1389
review(mj): slides 1-18
mjaehn Aug 24, 2026
cb91bd5
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 24, 2026
7ce787f
docs: rename courses to Git: The Basics / Git: Beyond the Basics
mjaehn Aug 24, 2026
6fa48ea
chore: ignore check_requirements.log
mjaehn Aug 24, 2026
2435947
Merge branch 'content-upate-advanced' of github.com:C2SM/git-course i…
mjaehn Aug 24, 2026
f43aeb1
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 24, 2026
51fecf6
Update beginner slides PDF [skip ci]
actions-user Aug 24, 2026
2ba6fc0
review(mj): slides 19-33
mjaehn Aug 25, 2026
df2131f
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 25, 2026
ca07455
review(mj): slides 34-48
mjaehn Aug 25, 2026
d084dcf
Update beginner slides PDF [skip ci]
actions-user Aug 25, 2026
08595ff
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 25, 2026
920fc19
fix(slides): move coffee break after ex. 3
mjaehn Aug 26, 2026
2da4828
docs(advanced): explain pager navigation and update hint for ex. 1
mjaehn Aug 26, 2026
fd4c1b2
fix(slides): use single quotes for -S pickaxe example
mjaehn Aug 26, 2026
7a61554
docs(advanced): update schedule for earlier start and longer exercise…
mjaehn Aug 26, 2026
9abeca0
docs(advanced): mark skippable tasks as Bonus in exercises 1, 2, 4, 5
mjaehn Aug 26, 2026
4321d8a
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 26, 2026
d508a65
docs(advanced): sync schedule slide with schedule.md
mjaehn Aug 26, 2026
e57ef3e
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 26, 2026
d520384
docs(advanced): move coffee break back to after Exercise 3
mjaehn Aug 26, 2026
d349f10
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 26, 2026
4aa81a3
docs(advanced): turn schedule list into an aligned grid
mjaehn Aug 26, 2026
59d41f7
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 26, 2026
f91f476
review(exercises): tighten wording to a formal, factual register
mjaehn Aug 29, 2026
ea3c704
review(slides): tighten wording to a formal, factual register
mjaehn Aug 29, 2026
26ce365
Update advanced slides diagrams and PDF [skip ci]
actions-user Aug 29, 2026
b96fdcb
docs(advanced): clarify sandbox layout and cleanup steps
mjaehn Sep 4, 2026
a6dd57c
fix(exercises): resolve Exercise 6/7 pre-commit hook conflict on LFS …
mjaehn Sep 10, 2026
4bb40dc
Update advanced slides diagrams and PDF [skip ci]
actions-user Sep 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
#
# Runs the same content consistency checks CI runs, so drift between slides,
# exercises and diagrams is caught locally before it ever reaches a push.
#
# Not wired in by default: git only looks in .git/hooks, which isn't tracked.
# Enable it once per clone with:
# git config core.hooksPath .githooks

set -euo pipefail

repo_root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." &> /dev/null && pwd)
cd "$repo_root"

# Keep the per-check "n. ... / ok: ..." rundown quiet on a passing commit; show
# it only when something actually failed, so it's there to diagnose but doesn't
# scroll past on every commit.
if output=$(bash advanced/tests/check_consistency.sh 2>&1); then
status=0
else
status=$?
fi

if [ "$status" -ne 0 ]; then
echo "$output"
echo ""
echo "Content consistency checks failed, commit aborted."
echo "Fix the issues above, or bypass this hook with 'git commit --no-verify'."
exit 1
fi

echo "$output" | tail -n 1
38 changes: 25 additions & 13 deletions .github/workflows/build_advanced_slides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
permissions:
contents: write

concurrency:
group: build-advanced-slides-${{ github.ref }}
cancel-in-progress: true

jobs:
build-pdf:
runs-on: ubuntu-latest
Expand All @@ -28,23 +32,31 @@ jobs:
with:
node-version: 22

- name: Build PDF
run: |
npx @marp-team/marp-cli@latest advanced/slides/slides.md \
--theme-set slides_theme/c2sm-light.css slides_theme/c2sm-dark.css \
--pdf \
--allow-local-files \
-o advanced/slides/slides_advanced.pdf
- name: Build diagrams and PDF
# Same script authors run locally, so the committed PDF cannot drift.
run: ./advanced/slides/build.sh

- name: Commit updated PDF to PR branch
- name: Commit updated diagrams and PDF to PR branch
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"

git add advanced/slides/slides_advanced.pdf
git add advanced/slides/images advanced/slides/slides_advanced.pdf
if git diff --cached --quiet; then
echo "PDF is already up to date."
echo "Diagrams and PDF are already up to date."
else
git commit -m "Update advanced slides PDF"
git push origin HEAD:${{ github.head_ref }}
fi
# [skip ci] stops GitHub from queuing new workflow runs for this commit,
# so fork PRs don't need a fresh manual approval after every auto-push.
git commit -m "Update advanced slides diagrams and PDF [skip ci]"

# The sibling beginner-slides workflow can push to this same branch at
# the same time (both trigger on shared slides_theme/** changes), so
# retry with a rebase if another push landed first.
for attempt in 1 2 3 4 5; do
git push origin HEAD:${{ github.head_ref }} && break
[[ $attempt -eq 5 ]] && { echo "::error::Push failed after $attempt attempts"; exit 1; }
echo "Push rejected, rebasing onto latest and retrying..."
git fetch origin ${{ github.head_ref }}
git rebase FETCH_HEAD
done
fi
28 changes: 20 additions & 8 deletions .github/workflows/build_beginner_slides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
permissions:
contents: write

concurrency:
group: build-beginner-slides-${{ github.ref }}
cancel-in-progress: true

jobs:
build-pdf:
runs-on: ubuntu-latest
Expand All @@ -29,12 +33,8 @@ jobs:
node-version: 22

- name: Build PDF
run: |
npx @marp-team/marp-cli@latest beginner/slides/slides.md \
--theme-set slides_theme/c2sm-light.css slides_theme/c2sm-dark.css \
--pdf \
--allow-local-files \
-o beginner/slides/slides_beginner.pdf
# Same script authors run locally, so the committed PDF cannot drift.
run: ./beginner/slides/build.sh

- name: Commit updated PDF to PR branch
run: |
Expand All @@ -45,6 +45,18 @@ jobs:
if git diff --cached --quiet; then
echo "PDF is already up to date."
else
git commit -m "Update beginner slides PDF"
git push origin HEAD:${{ github.head_ref }}
# [skip ci] stops GitHub from queuing new workflow runs for this commit,
# so fork PRs don't need a fresh manual approval after every auto-push.
git commit -m "Update beginner slides PDF [skip ci]"

# The sibling advanced-slides workflow can push to this same branch at
# the same time (both trigger on shared slides_theme/** changes), so
# retry with a rebase if another push landed first.
for attempt in 1 2 3 4 5; do
git push origin HEAD:${{ github.head_ref }} && break
[[ $attempt -eq 5 ]] && { echo "::error::Push failed after $attempt attempts"; exit 1; }
echo "Push rejected, rebasing onto latest and retrying..."
git fetch origin ${{ github.head_ref }}
git rebase FETCH_HEAD
done
fi
23 changes: 23 additions & 0 deletions .github/workflows/content_consistency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Content consistency

# Catches exactly the kind of drift that made the 2026 content update necessary in the
# first place: slides referencing an exercise that no longer exists, an exercise the
# slides never mention, or a diagram that got renamed on one side but not the other.

on:
pull_request:
paths:
- "advanced/**"
- "beginner/**"
- ".github/workflows/content_consistency.yml"

workflow_dispatch:

jobs:
consistency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Check that slides, exercises and diagrams agree
run: bash advanced/tests/check_consistency.sh
84 changes: 84 additions & 0 deletions .github/workflows/publish_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Publish Slides to GitHub Pages

on:
push:
branches:
- main
paths:
- "advanced/slides/**"
- "beginner/slides/**"
- "slides_theme/**"
- "pages/**"
- ".github/workflows/publish_pages.yml"

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Never cancel a deployment half-way: let a running one finish before the next starts.
concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Build both decks
# Same scripts authors run locally, so the published site cannot drift.
run: |
./beginner/slides/build.sh
./advanced/slides/build.sh

- name: Assemble site
# The theme stylesheets reference the C2SM logo and the title background as
# ../../slides_theme/images/..., relative to the deck. That only resolves if
# the site mirrors the repository layout, so keep the <course>/slides/ depth
# and ship slides_theme/images alongside.
run: |
mkdir -p _site/slides_theme _site/advanced _site/beginner

cp pages/index.html _site/index.html
cp -r slides_theme/images _site/slides_theme/

cp -r advanced/slides _site/advanced/
cp -r beginner/slides _site/beginner/

# Serve each deck at <course>/slides/ instead of a long file name.
mv _site/advanced/slides/slides_advanced.html _site/advanced/slides/index.html
mv _site/beginner/slides/slides_beginner.html _site/beginner/slides/index.html

# Sources and build inputs have no business on the published site.
rm -rf _site/*/slides/diagrams
rm -f _site/*/slides/slides.md _site/*/slides/build.sh
rm -f _site/*/slides/images/.diagram-hashes

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site

deploy:
needs: build
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
30 changes: 30 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Shellcheck

# The exercises lean on several shell scripts to bootstrap sandboxes and self-test.
# A bug in one of them breaks the course for everyone following it, so lint them like
# the code they are.

on:
pull_request:
paths:
- "**.sh"
- ".github/workflows/shellcheck.yml"

workflow_dispatch:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
severity: warning
# beginner/helpers.sh predates this workflow and is not part of this task's
# scope; it has its own pre-existing style warnings (unquoted variables,
# unchecked cd) that are a separate cleanup, not a regression to gate on here.
# A trailing single file cannot be excluded by name alone: the action's find
# walks from scandir "." and only matches "./beginner/helpers.sh" verbatim.
ignore_paths: ./beginner/helpers.sh
56 changes: 56 additions & 0 deletions .github/workflows/test_helpers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Test helper functions

# The helper scripts bootstrap every exercise, so they have to work on every platform
# the course is taught on: Linux, macOS and Git Bash for Windows. windows-latest ships
# Git for Windows, and a step with `shell: bash` runs under its Git Bash - so this
# actually exercises the platform that issue #147 was raised about, not a stand-in for it.

on:
pull_request:
paths:
- "advanced/helpers.sh"
- "advanced/examples/**"
- "advanced/tests/**"
- "beginner/helpers.sh"
- "beginner/examples/**"
- "beginner/tests/**"
- ".github/workflows/test_helpers.yml"

workflow_dispatch:

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

defaults:
run:
# windows-latest defaults to PowerShell; this makes every step below use the
# Git Bash that ships with Git for Windows instead, on all three platforms.
shell: bash

steps:
- name: Check out the course
uses: actions/checkout@v5
with:
path: git-course

- name: Report the Git version under test
run: git --version

- name: Set a Git identity
# Runners have no identity configured, and the helpers create commits.
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
git config --global init.defaultBranch main

- name: Test the advanced helpers
run: bash git-course/advanced/tests/test_helpers.sh

- name: Test the beginner helpers
run: bash git-course/beginner/tests/test_helpers.sh
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
.DS_Store
git-course_env/
.vscode/*.log
check_requirements.log

# HTML decks are built on demand by build.sh and published from CI, not committed.
advanced/slides/slides_advanced.html
beginner/slides/slides_beginner.html
_site/
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"markdown.marp.themes": [
"./slides_theme/c2sm.css",
"./slides_theme/c2sm-light.css",
"./slides_theme/c2sm-dark.css"
]
Expand Down
Loading