Turn the experiment into a public GitHub repository. You can ask for this in one prompt, or run the commands yourself. Try both ways once, and you will know exactly what the agent does on your behalf.
In this lesson, you will:
- initialize a Git repository and create the first commit.
- create and push a public GitHub repository.
- confirm that the commit and file landed.
Option A: Ask for it
Send the following prompt:
Initialize this folder as a Git repository, create an initial commit, and create a new public GitHub repository named space-quiz in my account. Push the current branch and set it as the default branch.
Approve each Git and GitHub action as the agent requests it.
Option B: Run it yourself
Prefix each command with ! to run it from inside the session, or run the commands without the prefix in your own terminal:
!git init -b main
!git add .
!git commit -m "Add space quiz"
!gh repo create space-quiz --public --source=. --push
The last command uses the GitHub CLI. If you do not have it, create the repository on GitHub, then run !git remote add origin <url> and !git push -u origin main.
Confirm the result
- Run
!git log --onelineto confirm that the commit landed. - Open the repository on GitHub and confirm that
index.htmlis present.
Summary and next steps
Your project is now a GitHub repository with a known-good version to compare against. Continue to Lesson 4: Work on issues in parallel.