Practising good version control hygiene could improve the process of debugging and backtracing. Practise it alongside with git blame
.
Follow the rules below:
- Keep changes small and localised.
- Fix commits must not mix with other unrelated things such as new feature implementation.
- One fix commit for exactly one fix on one bug.
- A fix commit must include its updated test assets.
- The fix commits should be clear and concise (more elaborate)