How to repeat a good golf swing
Merely repeating a swing 100's or 1000's of times can be more harmful than doing nothing. If you ingrain bad habits such as over the top,reverse weight shift,to upright,to bent over,to close to far from ball you could actually do your game harm.
You need to find a swing that works and repeat it. You also need to make sure you are actually repeating the correct swing by periodically taking a quick video,pic or have someone who knows your swing put eyes on it. Additionally you need to take the swing to a range and hit balls using the exact swing and see results. So often the swing used in practice is not transferred to the course as hole length,hazards,wind,course conditions etc come into play and you "forget" or alter your swing to account for these conditions. All of your practice is then out the window.
When you take the swing you have practiced and are pretty sure works for you to the course,first hit a small bucket of warm up balls. Your muscles may be tight,you may have extra energy,you may be tired,you may be hitting a slight fade or draw etc and you shouldn't fight it. Take it to the course. The course isn't a laboratory and you can't change your swing every shot but you may need to make slight adjustments.
Lastly,trust your swing.