ACM Editorial · 2026-11-28 · 1 min read

A commit should explain one meaningful change.

Keep commits focused

A commit should explain one meaningful change. Avoid combining unrelated formatting, business logic and generated files. Use a short-lived branch for a feature and review the diff before merging.

Make review reproducible

Include a test command, expected behaviour and any database changes in the review notes. Keep secrets, local database dumps and private client files out of the repository. Add an ignore file and check changes before committing.

Tag a tested release

Create release tags only after agreed checks have passed. Store a changelog that distinguishes user-facing changes, migrations and known limitations. Keep deployment configuration and dependency locks reproducible.

Recover deliberately

Revert a shared commit instead of rewriting published history without coordination. If a migration changes data, restore and rollback procedures need separate verification. Back up data before deploying a release that changes persistence.

Further reading

https://git-scm.com/docs