Explain Git States
Quest: explain-git-states
Mission
Run git status and git diff, then explain where a source change is in the Git workflow.
Commands You Will Use
git statusgit diff
Steps
- Run
cd ~/src. - Run
git status. - Run
git diff. - Answer the guide: what do unstaged, staged, committed, and pushed mean?
Hints
- Unstaged changes are in the working tree but not selected for the next commit.
- Staged changes are selected for the next commit.
- A commit records changes in local history; push sends commits to a remote.
If Check Fails
Use each word in your answer and connect it to working tree, next commit, local history, or remote.

Linux Foundations