01 Jun 2018

Atomic Commits

Do

  • Commit atomic changes ← ones that revolve around one task or fix.
  • Only commit when task is complete.

Don’t

  • Commit “whenever you feel like it”.
  • Commit “at the end of the work day”.

Benefits

  • Easy to roll back without affecting other changes.
  • Easy to make features into other branches.