News for hackers. Stuff that matters.
Re:Aha Moments When Learning Git by zerd on Monday June 13, 2011 @02:24PM (#2650099)
Problem with not testing your "micro-commits" is that when someone is looking at old revisions to figure out where something went wrong, there is a chance that it won't compile, or will crash because you didn't test that exact commit.
Re:Aha Moments When Learning Git by Pistos2 on Monday June 13, 2011 @02:44PM (#2650188)
I prefer smaller commits to larger ones because it isolates things (both improvements and breakage). I use git bisect when needed. You can always squash small commits into larger ones if really necessary, but teasing apart large commits into small, logical steps or components is much harder. Smaller commits are more "mobile" in that they can be cherry picked (in or out).
Re:Aha Moments When Learning Git by davvid on Thursday June 16, 2011 @05:25AM (#2660593)
After preparing the index with `git add -p` you can use `git stash --keep-index` before committing to help test your changes. This is a good practice to follow for exactly the reason you describe.