Commit your source
Quest: commit-source
Mission
Review a source change before staging it, then commit and inspect the history.
Commands You Will Use
git statusgit diffgit addgit commitgit log
Steps
- Run
cd ~/src. - Run
git status. - Run
git diffto read unstaged changes. - Stage the source file with
git add. - Run
git diff --stagedto read what the commit will contain. - Commit with
git commit -m "save site source". - Run
git log --onelineandgit status. - Ask the guide to check your command history.
Hints
- Commit source, not generated output.
- The guide needs to see both diffs before the commit.
If Check Fails
Run the missing git command, then ask for another check.

Linux Foundations