Commit early, commit often!

Today I learnt that:

1) I will be spending an extra hour having to re-do something, because I made the silly mistake of bundling several changes into one commit. Turns out that commit might be buggy, and because it’s so ridden with multiple changes it’s difficult to pinpoint any causation. Hence a revert of the entire commit…

2) There really is no downside to committing all the time because you can revert any commit at any time and still keep all the commits that were made after that (as opposed to having to revert in linear fashion).

Advertisements
Commit early, commit often!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s