How do commits, branches and merges support safe delivery work?
Answer
A commit records a snapshot and parent history, a branch names a moving line of development, and a merge combines histories. Small coherent commits and reviewed branches make changes traceable, reversible and easier to validate in CI.
Strong answer includes
- snapshot and history
- branch as a reference
- review and rollback value
Practical example
A developer accidentally breaks a feature; because the work was done in small, well-described commits on a feature branch, the team quickly bisects the history to find the exact commit that introduced the regression and reverts just that one change instead of the entire two-week branch.