Using commit messages helps with this sort of thing. The commit messages are not just, "did this. did that." They include reminders about why I am doing this project, the goal, concurrent efforts, etc. Git commit messages tend to prompt entries which wouldn't make it into an app called Day One on my Mac which is set up to auto-remind, whose entries tend to be about ephemeral things, or family things, not really work.