Deterministic main branch + fix two claims (#5,#13,#16) (#56)

Co-authored-by: claude <claude@jpaul.io>
Co-committed-by: claude <claude@jpaul.io>
This commit was merged in pull request #56.
This commit is contained in:
2026-06-22 14:58:51 -04:00
committed by Claude (agent)
parent e2a53c8259
commit 848ad14e3c
7 changed files with 33 additions and 12 deletions
@@ -61,7 +61,7 @@ minutes of work."
The core commands:
```bash
git init # turn the current folder into a repository (once per project)
git init -b main # turn the current folder into a repository, first branch named "main" (once per project)
git status # what's changed since the last commit?
git add . # stage the changes you want in the next commit
git commit -m "message" # save a checkpoint with a note
@@ -154,10 +154,17 @@ and your AI assistant.
```bash
cd ~/workflow-course/tasks-app
git init
git init -b main # start the repo with its first branch named "main" (Git 2.28+)
git status # everything shows as "untracked" — Git sees the files but isn't saving them yet
```
> **Why `-b main`, and what if your Git is older.** Stock Git still names the first branch
> `master`, but every later module in this course says `main` (you'll `git switch main`, compare
> `git log main..HEAD`, merge into `main`). `git init -b main` settles that name once so those
> commands resolve. The `-b` flag needs Git 2.28+ (`git --version` to check); on an older Git, run
> plain `git init`, finish the first commit in step 2, then rename the branch once with
> `git branch -m master main`. Either route leaves you on `main`.
2. Add a `.gitignore` so you don't version generated junk. Copy this module's
`lab/gitignore-starter` to a file named exactly `.gitignore` in the project root, then: