Depends a lot, if I'm fixing bugs or something I started committing everything when all bugs were fixed or when the day ended. Now I'm committing every time a single bug is fixed. When developing I start committing when structure is done, when a specific function has been done, when style of a section is done and so on, specially when I think I could fok something up.