Steps — Stage 1: First Save Point
Follow these steps in order. Every step is a terminal command run from inside the
box-runnerfolder.
Prerequisites
Completed Stage 0. You have a box-runner folder with index.html inside it. Git is installed.
Steps
1. Move into the project folder
cd box-runnerEvery Git command in this tutorial runs from inside this folder.
2. Initialize the Git repository
git initThis creates a hidden .git folder inside box-runner. That hidden folder is the entire Git repository — every save point will eventually live there.
You may see a message like Initialized empty Git repository in /.../.git/. That is the confirmation.
3. Check the status
git statusYou will see index.html listed under Untracked files. Untracked means Git can see it, but is not yet tracking its history.
4. Stage index.html
git add index.htmlStaging is "getting ready to save." The file is now lined up to be included in the next commit, but the commit has not happened yet.
Run git status again. index.html has moved to Changes to be committed.
5. Make the first commit
git commit -m "Created basic Box Runner start screen"This is the save point. The -m flag is short for "message" — the text in quotes is a note describing what you saved.
6. View your history
git logYou see one commit with the message you just wrote, your name, and the date. That is your first save point.
Verify
git statusprintsnothing to commit, working tree clean.git log --onelineprints one line ending inCreated basic Box Runner start screen.- Opening
index.htmlin the browser still shows the same page from Stage 0.