Your commits need to be focused on "what would happen if I needed to rollback a commit", what would be the result?
In this example (image below), a rollback would remove the method "gameMenu" (New Code), just to rollback the if statement (Code Change). Atomic Commits are solely focused on putting the code back to a previous state without losing unrelated functionality. This example commit would have far reaching unintended consequences to the program, as a whole.
Will need to work on trying to do more micro commits. I tend to forget to commit while coding because I get so caught up in all the logic as the program is executing and errors are popping up.
Ref #19
Your commits need to be focused on "what would happen if I needed to rollback a commit", what would be the result?
In this example (image below), a rollback would remove the method "gameMenu" (New Code), just to rollback the if statement (Code Change). Atomic Commits are solely focused on putting the code back to a previous state without losing unrelated functionality. This example commit would have far reaching unintended consequences to the program, as a whole.