I have a log of commits and the decisions and changes for each commit. I use it as a source of data/context when building out plans.
I agree with the other commenter who said they don't build anything without a plan. I would double down on that and say that you need to overplan, and regularly toss out plans as you do research/discovery.