No save points yet: my-site is not a Git project. git init makes it one.
Windows PowerShell (practice mode: nothing here touches your real computer)
Lesson 52: Why save points?
Level 7, Save Points: Git and GitHub. Turn a folder into a Git project with git init. The new word: repository. It follows lesson 51, Level 6 test: Web Maker. Next comes lesson 53, Your first commit.
What the lesson explains
Save points. Never lose your work again.
One timeline. Not final, final-2, final-final. One project, many saves. final-v2.html messy; Git save points; one folder one line.
What you do first
Start Git here. In the practice terminal, type git init at the prompt PS C:\Users\you\Documents\my-site> and the computer answers: Initialized empty Git repository in C:/Users/you/Documents/my-site/.git/.
The files on the practice computer
This lesson works in 2 folders. At the start, Documents\my-site holds images\, index.html, style.css; Documents holds diary\, music\, my-project\, my-site\, stories\, vault\, homework.txt.
Along the way you type git init. Lesson 53 opens with the files just as you leave them.
What you practise
Try it, "Start Git here": In the practice terminal, type git init at the prompt PS C:\Users\you\Documents\my-site> and the computer answers: Initialized empty Git repository in C:/Users/you/Documents/my-site/.git/.
Try it, "Ask Git": In the practice terminal, type git status at the prompt PS C:\Users\you\Documents\my-site> and the computer answers: On branch main / No commits yet / Untracked files: / (use "git add <file>..." to include in what will be committed) / images/cat.png / index.html / style.css / nothing added to commit but untracked files present (use "git add" to track).
In your head, "Where are the saves?": Where does Git keep its save points? The answer: "In a hidden .git folder".
Fix it, "The wrong folder": Starting at C:\Users\you\Documents, use dir and cd to reach C:\Users\you\Documents\my-site, then type git-status there (par: 2 commands).
What PlayBuddy and PlayType say
PlayType: "Welcome to Level 7! Git gives your project save points, like a game."
PlayBuddy: "Git init turns a folder into a Git project."
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 4 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.