Commit Frequency

Commit Frequency

by D Cocroft -
Number of replies: 1


I had a question on "meaningful commits."  I just read my previous assignments comments and it says I should make more commits.  I know we briefly went over it in class, but I was wondering if there was a more extensive answer or convention for when to commit.  I have been committing for each completed step (which I guess is not enough), so should we be shooting to commit for each completed function, or each completed line of code, or some other metric?  

Thank you

In reply to D Cocroft

Re: Commit Frequency

by Erik Spence -
Committing at each completed step should be sufficient, assuming your comments describing the commits are meaningful and clear. Send me an email describing which assignments you're referring to, and I'll take a closer look.