What a repo holds
A repo keeps all your files, their full history, and a message describing each change. It's the single source of truth everyone on the project can fall back to when they can't remember what changed and why.
Why commit often
Small, frequent commits are easy to read in hindsight, and they're your safety net: if one bad change sneaks in, you can undo just that commit without throwing away everything since it.