- Make small changes, frequent commits
- Make testing habitual
- Keep a record of everything you do
- Have a backup. Be ready and able to revert.
- Automate what you can
- Create procedures (checklists) for common tasks
- Slow down. Never rush to commit code.
If your problem is focus, identify what the distraction is and deal with it.