Skip to content

Practice Checklist

Use this checklist inside a learner-owned copy of a practice template, preferably git-basics-sql-practice.

The same pattern should be repeated several times with small changes. The objective is comfort with the workflow, not speed.

Keep the GitHub Basics infographic open while practicing. When you get stuck, find your current step on the visual loop and run git status before deciding what to do next.

The repeatable pattern for creating and committing changes.

Terminal window
git switch main
git pull
git status

If git switch is not available, use git checkout main.

  • I am on main.
  • My local copy is up to date.
  • git status does not show leftover changes from another exercise.
StepCommand or action
Create branchgit switch -c docs/add-analysis-note
EditOpen analysis-notes/visit-count-notes.md
Inspectgit status then git diff
Stagegit add analysis-notes/visit-count-notes.md
Check staged workgit diff --staged
Commitgit commit -m "docs: add analysis note"
Pushgit push -u origin docs/add-analysis-note
  • Add one short note about what the starter query is intended to answer.
  • Open a pull request.
  • Merge it after review.
  • Switch back to main and pull the merged change.
StepCommand or action
Create branchgit switch -c analysis/clarify-visit-query
EditOpen queries/01-count-visits.sql
Inspectgit status then git diff
Stagegit add queries/01-count-visits.sql
Check staged workgit diff --staged
Commitgit commit -m "docs: clarify visit count query"
Pushgit push -u origin analysis/clarify-visit-query
  • Add or improve a comment that explains what the query counts.
  • Open a pull request.
  • Update the PR if feedback is requested.
  • Merge the PR and pull the latest main.

Round 3 — Improve a data dictionary entry

Section titled “Round 3 — Improve a data dictionary entry”
StepCommand or action
Create branchgit switch -c metadata/define-visit-date
EditOpen data-dictionary/fields.md
Inspectgit status then git diff
Stagegit add data-dictionary/fields.md
Check staged workgit diff --staged
Commitgit commit -m "docs: define visit date field"
Pushgit push -u origin metadata/define-visit-date
  • Add or revise one field definition.
  • Open a pull request.
  • Merge the PR after review.
  • Pull the latest main.

Round 4 — Practice responding to PR feedback

Section titled “Round 4 — Practice responding to PR feedback”

Use the same branch if a reviewer asks for a correction.

Concept card showing the review feedback workflow: edit same branch, status, diff, add, commit, push, PR updates automatically.

  • Make the requested change locally.
  • Run git status.
  • Run git diff.
  • Stage the correction.
  • Run git diff --staged.
  • Commit with docs: address review feedback.
  • Push again.
  • Confirm the existing PR updated automatically.
If you see or think…First safe check
“I do not know where I am.”git status
“Did I save the file?”Save in editor, then git status
“What exactly changed?”git diff
“What will be committed?”git diff --staged
“Did I create a commit?”git status or git log --oneline -5
“Did GitHub get my work?”Check the branch/PR on GitHub after pushing
“Can I push uncommitted changes?”No. Push sends commits only.
  • What command tells you what Git sees right now?
  • What command shows the exact text changed before staging?
  • What command shows the exact text staged for commit?
  • What command saves a local checkpoint?
  • What command sends committed work to GitHub?
  • What command brings GitHub changes down to your computer?
  • Why do we use branches for small changes?
  • Why do we use pull requests before merging?