Atomic Commits Concept
Concept Check Medium
Question
What is an 'atomic commit'?
Hint
Atomic means indivisible — one change per commit.
Explanation
An atomic commit addresses exactly one logical change — one feature, one bugfix, or one refactor. It does not mix unrelated changes. This makes code review easier, history more readable, and allows precise reverts (you can revert one change without affecting others). Mixing multiple unrelated changes in one commit is a common anti-pattern.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.