Kolam Ayer MakersLinux Foundations

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

Steps

  1. Run cd ~/src.
  2. Run git status.
  3. Run git diff.
  4. Answer the guide: what do unstaged, staged, committed, and pushed mean?

Hints

  1. Unstaged changes are in the working tree but not selected for the next commit.
  2. Staged changes are selected for the next commit.
  3. 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.