Web development
Status, Staging, and Commits
Updated Oct 28, 2026
git status shows changes. git add stages selected changes, and git commit records the staged snapshot with a message. Review the staged content before committing and never commit passwords or private
What you’ll learn
Understand and practise status, staging, and commits.
Explanation
git status shows changes. git add stages selected changes, and git commit records the staged snapshot with a message. Review the staged content before committing and never commit passwords or private keys.
git status បង្ហាញការផ្លាស់ប្ដូរ។ git add ដាក់ការផ្លាស់ប្ដូរទៅ staging ហើយ git commit កត់ត្រា snapshot។ កុំ commit ពាក្យសម្ងាត់ ឬ private key។
Example
Run git status, then git add index.html and git commit -m "Add homepage".
Practice
Does git commit include every edited file automatically?
Answer and explanation
Show answer / បង្ហាញចម្លើយ
No. It records the changes currently staged.
Quick recap
git status shows changes.