Skip to main content
Post Made Community Wiki
Source Link
azheglov
  • 7.2k
  • 1
  • 30
  • 50

This example shows a commit that is too large.

As a rule of thumb, describe the change in one sentence or one line of text. (Based on this rule, the commit should be broken into 10-15 smaller ones.) If you can't adequately comment a commit in one line, then it's already too large.

To practice smaller commits, take notes in your notepad (or in Notepad) of what you've already changed or added. Commit before it becomes a long list or before you make a code change unrelated to what you already have in the notepad.