git add — stage a change

Git saves snapshots in two moves: first you stage what should go into the next snapshot with git add, then you commit it. Staging lets you pick exactly which changes belong together.

Create a file and stage it:

!cd git-playground && echo "my first note" > notes.txt && git add notes.txt

Then click Check — it verifies a file is really staged in the index.