- Ignore env files
f21342bmainyou are here - Keep secrets home
0f599fd - Update my to-do list
b2cad55☁ GitHub - More ideas
76fefe3 - Big title
7a63fb7big-title - Dark mode
31d2355dark-mode - Add a to-do list
f02c54d - Add my ideas
adc97b5 - My About Me page
8fa9095
Windows PowerShell (practice mode: nothing here touches your real computer)
Lesson 58: Practice: save point drills
Level 7, Save Points: Git and GitHub. Undo a mess, judge commit messages, spot secrets. It follows lesson 57, Secrets stay home. Next comes lesson 59, Level 7 test: Save Point Pro.
What the lesson explains
Save point drills. Undo a mess, judge messages, spot secrets.
What you do first
Undo and judge. In the practice terminal, type echo broken > style.css at the prompt PS C:\Users\you\Documents\my-site>; the prompt then reads PS C:\Users\you\Documents\my-site>.
The files on the practice computer
This lesson works in one folder. At the start, Documents\my-site holds images\, .gitignore, ideas.txt, index.html, keys.env, secrets.txt, style.css, todo.txt.
Along the way you type echo broken > style.css, type git restore style.css, type git switch -c footer, type echo "Made by me" > footer.txt, type git add footer.txt, type git commit -m "Add a footer note", type git switch main, type git merge footer and type git push. Lesson 59 opens with the files just as you leave them.
What you practise
Time Machine, "Undo and judge": In the practice terminal, type echo broken > style.css at the prompt PS C:\Users\you\Documents\my-site>; the prompt then reads PS C:\Users\you\Documents\my-site>. Then: In the practice terminal, type git restore style.css at the prompt PS C:\Users\you\Documents\my-site>; the prompt then reads PS C:\Users\you\Documents\my-site>. Then: Which commit message helps future you most? The answer: "Add a dark mode button". Then: Which name belongs in .gitignore? The answer: "passwords.txt".
Challenge, "A whole idea": On a branch called footer, make footer.txt and save it; merge it into main, then push. Starting at PS C:\Users\you\Documents\my-site>, one way takes 7 commands: git switch -c footer; echo "Made by me" > footer.txt; git add footer.txt; git commit -m "Add a footer note"; git switch main; git merge footer; git push (par: 7).
What PlayBuddy and PlayType say
PlayType: "Practice time! Undo mistakes, judge messages, and spot secrets."
Help in every lesson
Everything happens on a pretend computer in your browser, so nothing touches your real files. PlayBuddy and PlayType stand beside the board, cheer you on and say when it is your turn.
A green ring shows where to click the first time. After that you do it on your own, and if you slip twice the ring comes back.
Stars
The lesson has 5 things to do. Up to one slip in ten gives three stars, up to one in four gives two, and finishing always gives at least one. Stars and progress are saved in this browser only; there is no account.
About DayOneCode
DayOneCode is an independent learning site, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.