News for hackers. Stuff that matters.
Re:GitHub Flow by DamagedProperty on Wednesday August 31, 2011 @01:58PM (#2946718)
I like to think about my commits as units of work that I can pull back or cherry pick if I want to. It doesn't always work out that way.

Make sure your commits are cohesive to the change you are making. I think that is a good rule of thumb.

Re:GitHub Flow by dasil003 on Wednesday August 31, 2011 @02:35PM (#2946906)
Yes, definitely nice if you can make your commits atomic changes. The more easily able to right a nice summary line (50 chars please!) the better.

On the other hand, some changes are big and messy. In this case I sometimes do intermediate commits, especially if it's at the end of a day just so I can keep yesterdays changes conceptually separate from todays. In the end I may rebase -i the whole thing and clean things up before pushing, but only if there are some obvious and quick ways to split it up.