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.

  1. Go to https://github.com.
  2. Click + in the upper-right corner.
  3. Choose New repository.
  4. Name the repository python_tmr_practice.
  5. Choose Private.
  6. Check Add a README file.
  7. Click Create repository.

From the new repository page:

  1. Click the green Code button.
  2. Click the Codespaces tab.
  3. Click Create codespace on main.
  4. 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 diff

In Source Control:

  1. Find README.md under Changes.
  2. Hover over README.md and click the + button to stage it.
  3. Confirm that README.md moved from Changes to Staged Changes.
  4. Write a descriptive commit message in the message box.
  5. 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=5

In 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 push

Now pretend this repository contains a draft you are sending to coauthors.

In Source Control:

  1. Find the Graph section.
  2. Right-click the most recent commit.
  3. Choose Create Tag….
  4. Name the tag 2026-06-03-to-MP, or substitute “MP” with the initials of your imaginary coauthor.
  5. Confirm the tag.

Then push the tag to GitHub from the terminal:

git push origin 2026-06-03-to-MP

Return to the repository page on GitHub and confirm that the tag appears.