2a Activity: Git and GitHub
Goal
We will create a brand-new practice repository on GitHub, open it in Codespaces, make one change, commit it, push it, and mark a shared version with a tag.
Note: The checkboxes on this page are only stored locally in your browser. They are not submitted or synced anywhere.
Progress: 0 / 0 steps complete.
Activity
Start on GitHub in Chrome or Edge.
- Go to https://github.com.
- Click + in the upper-right corner.
- Choose New repository.
- Name the repository
python_tmr_practice. - Choose Private.
- Check Add a README file.
- Click Create repository.
From the new repository page:
- Click the green Code button.
- Click the Codespaces tab.
- Click Create codespace on main.
- Wait for VS Code Web to open.
If GitHub asks whether you trust the authors of the files, choose the “Yes” option.
Open README.md.
Add a short research-project note, such as:
## Project Notes
This repository is a practice project for learning Git and GitHub.Save the file.
Return to Source Control and click the changed file to review the diff.
Useful terminal reference:
git status --short
git diffIn Source Control:
- Find
README.mdunder Changes. - Hover over
README.mdand click the + button to stage it. - Confirm that
README.mdmoved from Changes to Staged Changes. - Write a descriptive commit message in the message box.
- Click Commit.
If you have multiple changed files, stage only the files that belong together in this commit.
A good message for this practice change might be:
Added project notes to README.
Useful terminal reference:
git add README.md
git commit -m "Added project notes to README."
git log --oneline --max-count=5In VS Code Web, use Sync Changes or Push (from the … menu) in Source Control.
Then return to the repository page on GitHub and confirm the README change appears there.
Useful terminal reference:
git pushNow pretend this repository contains a draft you are sending to coauthors.
In Source Control:
- Find the Graph section.
- Right-click the most recent commit.
- Choose Create Tag….
- Name the tag
2026-06-03-to-MP, or substitute “MP” with the initials of your imaginary coauthor. - Confirm the tag.
Then push the tag to GitHub from the terminal:
git push origin 2026-06-03-to-MPReturn to the repository page on GitHub and confirm that the tag appears.