Git

Describe how git status works

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Shortly, it runs git diff twice:

  1. Compare between HEAD to staging area
  2. Compare staging area to working directory