I have trouble getting into the habit of using git or source control in general. In the beginning of a programming session I am aware that I should commit frequently but after a while I have this coding tunnel vision and forget to commit and then hours later I realize I coded so much that I can't really make useful commits without breaking everything apart which would take a lot of time.
Has anybody some tips and tricks in how a beginner should get into the habit of using a source control system properly.