DEV Community

Discussion on: Do your commits pass this simple test?

Collapse
 
sublimegeek profile image
Jonathan Irvin • Edited

I start with everytime you hit save. Can you describe your change in one sentence? Commit it. Then after you get into the rigor of committing that frequently, then you can begin to scale back. It's more art than science.

Collapse
 
jaytedgar profile image
JayTEdgar

Every time I save? Good lord! I save at least once every 2 minutes.

Thread Thread
 
sublimegeek profile image
Jonathan Irvin

Lol, but you get my point. It's extreme, but you have to think about the changes you made. Adding classes and methods can constitute a commit.