Git records snapshots called commits. GitHub stores a copy of the repository and helps people collaborate; it is not Git itself.
Run these inside your repository:
git status
git diff
git diff --staged
git log --oneline --decorate -5statussays which files differ from the last commit.diffshows unstaged lines.diff --stagedshows what the next commit would contain.logshows recorded history.
Add a section named Questions to MY_SYSTEM.md, with two things you want to
understand about NixOS. Inspect it, stage it, inspect the staged version, and
commit it:
git diff
git add MY_SYSTEM.md
git diff --staged
git commit -m "docs: record my first NixOS questions"
git pushA good commit is one understandable change with a message explaining why it
exists. Do not use git add . until you can account for every changed file.
Without changing anything, answer:
- Which commit are you on?
- Is your working tree clean?
- Which remote receives
git push?
The commands you need are git log, git status, and git remote -v.
- I can explain the difference between Git and GitHub.
- I used
status,diff,diff --staged, andlog. - I know exactly which repository receives my push.
- I made one small commit with a meaningful message.
- I ticked Lesson 01 in PROGRESS.md.
Next: learn how to research with AI, then continue to Lesson 02.