That's where "mindfulness"--living in the present moment--comes in.
Keep bringing your mind back to the task immediately at hand when it is tempted to race ahead.
Make a sound plan to accomplish your goal, then put one foot ahead of the other.
"One day at a time"--"one minute at a time"--is really useful when tackling something new and daunting.